diff options
author | Huaping Zhou <zhp@smail.nju.edu.cn> | 2019-06-26 18:47:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-26 20:10:16 +0300 |
commit | 4480879251fb89b1c5585112b1ccc8c3333b41af (patch) | |
tree | be8d7fcea55952b91f5167600c103a421a8d6421 /net/smc/af_smc.c | |
parent | 30d8177e8ac776d89d387fad547af6a0f599210e (diff) | |
download | linux-4480879251fb89b1c5585112b1ccc8c3333b41af.tar.xz |
net/smc: hold conns_lock before calling smc_lgr_register_conn()
After smc_lgr_create(), the newly created link group is added
to smc_lgr_list, thus is accessible from other context.
Although link group creation is serialized by
smc_create_lgr_pending, the new link group may still be accessed
concurrently. For example, if ib_device is no longer active,
smc_ib_port_event_work() will call smc_port_terminate(), which
in turn will call __smc_lgr_terminate() on every link group of
this device. So conns_lock is required here.
Signed-off-by: Huaping Zhou <zhp@smail.nju.edu.cn>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
0 files changed, 0 insertions, 0 deletions