aboutsummaryrefslogtreecommitdiffstats
path: root/net/smc/smc_clc.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-02-17 16:24:52 +0100
committerDavid S. Miller <davem@davemloft.net>2020-02-17 14:50:24 -0800
commit3739707c4568f05842c8bf770285328067bd6679 (patch)
tree3eec2352d6a1e1c01695114ad9b146ea01f83c8a /net/smc/smc_clc.c
parentnet/smc: use termination worker under send_lock (diff)
downloadlinux-dev-3739707c4568f05842c8bf770285328067bd6679.tar.xz
linux-dev-3739707c4568f05842c8bf770285328067bd6679.zip
net/smc: do not delete lgr from list twice
When 2 callers call smc_lgr_terminate() at the same time for the same lgr, one gets the lgr_lock and deletes the lgr from the list and releases the lock. Then the second caller gets the lock and tries to delete it again. In smc_lgr_terminate() add a check if the link group lgr is already deleted from the link group list and prevent to try to delete it a second time. And add a check if the lgr is marked as freeing, which means that a termination is already pending. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_clc.c')
0 files changed, 0 insertions, 0 deletions