]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-fc: avoid race between time out and tear down
authorJames Smart <jsmart2021@gmail.com>
Tue, 14 Sep 2021 09:20:07 +0000 (11:20 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 21 Sep 2021 07:17:12 +0000 (09:17 +0200)
commitaa492c1cf869c2f7b22f51a8ff3ae3dcd2e85e74
treee3b5dc43a131ab9958712c89fb15f3eb0546efed
parent0d7dc9b225174f87c2977f6d00d2b587b9e16f4b
nvme-fc: avoid race between time out and tear down

To avoid race between time out and tear down, in tear down process,
first we quiesce the queue, and then delete the timer and cancel
the time out work for the queue.

This patch merges the admin and io sync ops into the queue teardown logic
as shown in the RDMA patch d6be6bf350 "nvme-rdma: avoid race between time
out and tear down". There is no teardown_lock in nvme-fc.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Tested-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c