]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: avoid possible duplicate dmb unregistration
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 2 Jun 2021 08:56:25 +0000 (10:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 20:54:49 +0000 (13:54 -0700)
commit86b83baed05455b7048421099ab0eef611a0244f
tree64e069387e8e9922e61c5b02d43fac43bb11a978
parentb313ce49b29381eddebd7911567409468b0c7207
net/smc: avoid possible duplicate dmb unregistration

smc_lgr_cleanup() calls smcd_unregister_all_dmbs() as part of the link
group termination process. This is a leftover from the times when
smc_lgr_cleanup() scheduled a worker to actually free the link group.
Nowadays smc_lgr_cleanup() directly calls smc_lgr_free() without any
delay so an earlier dmb unregistration is no longer needed.
So remove smcd_unregister_all_dmbs() and the call to it.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c