]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
In the reboot_event handler, unregister the ib devices and enable
the IB layer to release the devices before the reboot.

Fixes: 5895fbecde02 ("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

index bb92c7c6214c30d32dfaa38f3e97ae743c384d2c..e419ff277e55856d2a0d01f6af590611e69fa6b7 100644 (file)
@@ -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;
 }