net/smc: unregister ib devices in reboot_event
authorKarsten Graul <kgraul@linux.ibm.com>
Thu, 19 Dec 2019 11:51:13 +0000 (12:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2019 05:31:19 +0000 (21:31 -0800)
commit28a3b8408f70b646e78880a7eb0a97c22ace98d1
tree316c4151452727ac3dba363f12a460bfe8b0a43a
parentd3e014ec7d5ebe9644b5486bc530b91e62bbf624
net/smc: unregister ib devices in reboot_event

In the reboot_event handler, unregister the ib devices and enable
the IB layer to release the devices before the reboot.

Fixes: a33a803cfe64 ("net/smc: guarantee removal of link groups in reboot")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c