]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-fc: use RCU proctection for assoc_list
authorLeonid Ravich <Leonid.Ravich@emc.com>
Sun, 3 Jan 2021 18:12:54 +0000 (20:12 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:10 +0000 (10:26 +0100)
commit5f62a4369c92374ad9f7b8a3ecbd8be6649579c2
treeea0275ea6e5d40fab400d8ed582356081859f63e
parent913af0b73674b8010b82f5a84b4004f5cbf95998
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>
drivers/nvme/target/fc.c