net/smc: unregister ib devices in reboot_event
PATCH 1/1 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 <[email protected]>
Reviewed-by Ursula Braun <[email protected]>
--- net/smc/smc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/smc/smc_core.c +1 -1
@@ -1287,7 +1287,7 @@ static int smc_core_reboot_event(struct notifier_block *this, unsigned long event, void *ptr) {smc_lgrs_shutdown (); - +smc_ib_unregister_client ();return 0 ; }
Signature · 1 line
2.21.0
From: Karsten Graul <[email protected]>
Date: Thu, 19 Dec 2019 12:51:13 +0100
Quoted 6 lines
In the
reboot_eventhandler, 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 <[email protected]>Reviewed-by Ursula Braun <[email protected]>
Applied.