OSDN Git Service

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)
commitf8e0a68babae3f612799178c718ec5358eac41cf
tree64e069387e8e9922e61c5b02d43fac43bb11a978
parentc356be057432da1720afb5106f4ff102b6a950a7
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