From: Leonid Ravich <Leonid.Ravich@xxxxxxx>
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@xxxxxxxx>
Reviewed-by: Elad Grupi <Elad.Grupi@xxxxxxxx>
Signed-off-by: Leonid Ravich <Leonid.Ravich@xxxxxxx>
---
1) fixed sytle issus
2) queues array protects by rcu as well
drivers/nvme/target/fc.c | 81 +++++++++++++++++++++++-------------------------
1 file changed, 38 insertions(+), 43 deletions(-)
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature