Skip to content
Commit 4e2f02bf authored by Leonid Ravich's avatar Leonid Ravich Committed by Christoph Hellwig
Browse files

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: default avatarEldad Zinger <Eldad.Zinger@dell.com>
Reviewed-by: default avatarElad Grupi <Elad.Grupi@dell.com>
Reviewed-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarLeonid Ravich <Leonid.Ravich@emc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 36ca03c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment