[PATCH v2] nvmet-fc: associations list protected by rcu, instead of spinlock_irq where possible.

James Smart james.smart at broadcom.com
Mon Jan 11 18:46:20 EST 2021



On 1/3/2021 10:12 AM, leonid.ravich at dell.com wrote:
> From: Leonid Ravich <Leonid.Ravich at emc.com>
>
> 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 at dell.com>
> Reviewed-by: Elad Grupi <Elad.Grupi at dell.com>
> Signed-off-by: Leonid Ravich <Leonid.Ravich at emc.com>
> ---
> 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(-)
>
>

Reviewed-by: James Smart <james.smart at broadcom.com>

-- james

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4163 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20210111/de8bec91/attachment-0001.p7s>


More information about the Linux-nvme mailing list