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: NEldad Zinger <Eldad.Zinger@dell.com> Reviewed-by: NElad Grupi <Elad.Grupi@dell.com> Reviewed-by: NJames Smart <james.smart@broadcom.com> Signed-off-by: NLeonid Ravich <Leonid.Ravich@emc.com> Signed-off-by: NChristoph Hellwig <hch@lst.de>
Showing
想要评论请 注册 或 登录