net/smc: terminate link group without holding lgr lock
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 21 Oct 2019 14:13:09 +0000 (16:13 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 18:23:43 +0000 (11:23 -0700)
commit8caa654451bda40379bff786a63833b2965536e4
tree7983de20d27240fec87e2ba8cc3e7bcd6a57695f
parentb290098092e4aeaa1712d3326bf5b64d2751c740
net/smc: terminate link group without holding lgr lock

When a link group is to be terminated, it is sufficient to hold
the lgr lock when unlinking the link group from its list.
Move the lock-protected link group unlinking into smc_lgr_terminate().

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/smc/smc_core.c