From: James Smart <jsmart2021@xxxxxxxxx>Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
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 3017013dcc "nvme-rdma: avoid race between time
out and tear down". There is no teardown_lock in nvme-fc.
Signed-off-by: James Smart <jsmart2021@xxxxxxxxx>
CC: Chao Leng <lengchao@xxxxxxxxxx>
Tested-by: Daniel Wagner <dwagner@xxxxxxx>
[dwagner: updated commit id referenced in commit message]
Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>
---
drivers/nvme/host/fc.c | 2 ++
1 file changed, 2 insertions(+)