[PATCH 2/2] nvme-fc: fix race between error recovery and creating association

James Smart jsmart2021 at gmail.com
Tue Jul 11 12:48:15 PDT 2023


On 7/7/2023 2:21 PM, Michael Liang wrote:
> There is a small race window between nvme-fc association creation and error
> recovery. Fix this race condition by protecting accessing to controller
> state and ASSOC_FAILED flag under nvme-fc controller lock.
> 
> Signed-off-by: Michael Liang <mliang at purestorage.com>
> Reviewed-by: Caleb Sander <csander at purestorage.com>
> ---
>   drivers/nvme/host/fc.c | 21 ++++++++++++++++-----
>   1 file changed, 16 insertions(+), 5 deletions(-)

This patch looks good.  Thanks

Reviewed-by: James Smart <jsmart2021 at gmail.com>

-- james





More information about the Linux-nvme mailing list