summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host
diff options
context:
space:
mode:
authorNilay Shroff <nilay@linux.ibm.com>2024-10-16 05:03:14 +0200
committerKeith Busch <kbusch@kernel.org>2024-10-17 20:07:37 +0200
commitc199fac88fe7c749f88a0653e9f621b9f5a71cf1 (patch)
tree6d76834fa383a2194594e0ce63a84291070b7051 /drivers/nvme/host
parentnvme-pci: fix race condition between reset and nvme_dev_disable() (diff)
downloadlinux-c199fac88fe7c749f88a0653e9f621b9f5a71cf1.tar.xz
linux-c199fac88fe7c749f88a0653e9f621b9f5a71cf1.zip
nvme-loop: flush off pending I/O while shutting down loop controller
While shutting down loop controller, we first quiesce the admin/IO queue, delete the admin/IO tag-set and then at last destroy the admin/IO queue. However it's quite possible that during the window between quiescing and destroying of the admin/IO queue, some admin/IO request might sneak in and if that happens then we could potentially encounter a hung task because shutdown operation can't forward progress until any pending I/O is flushed off. This commit helps ensure that before destroying the admin/IO queue, we unquiesce the admin/IO queue so that any outstanding requests, which are added after the admin/IO queue is quiesced, are now flushed to its completion. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme/host')
0 files changed, 0 insertions, 0 deletions