diff options
author | Leonid Ravich <Leonid.Ravich@emc.com> | 2021-01-03 20:12:54 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-02-02 10:26:10 +0100 |
commit | 4e2f02bf77dac7b8c841f93ae5a71556d733cb04 (patch) | |
tree | ea0275ea6e5d40fab400d8ed582356081859f63e /drivers/nvme/host/fc.c | |
parent | 36ca03c830e41769c62d2ca15be8351059f86c45 (diff) | |
download | linux-4e2f02bf77dac7b8c841f93ae5a71556d733cb04.tar.bz2 |
nvmet-fc: use RCU proctection for assoc_list
searching assoc_list protected by rcu_read_lock if list not changed inline.
and according to the rcu list rules.
queue array embedded into nvmet_fc_tgt_assoc protected by rcu_read_lock
according to rcu dereference/assign rules.
queue and assoc object freed after grace period by call_rcu.
tgtport lock taken for changing assoc_list.
Reviewed-by: Eldad Zinger <Eldad.Zinger@dell.com>
Reviewed-by: Elad Grupi <Elad.Grupi@dell.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Leonid Ravich <Leonid.Ravich@emc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/fc.c')
0 files changed, 0 insertions, 0 deletions