* [PATCH] NVMe: Fix check_flush_dependency warning
@ 2016-04-27 21:51 Keith Busch
2016-04-28 11:22 ` Sagi Grimberg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Keith Busch @ 2016-04-27 21:51 UTC (permalink / raw)
If the controller fails and is degraded after a reset, we need to kill
off all requests queues before removing the inaccessble namespaces. This
will prevent del_gendisk from syncing dirty data, which we can't due
from a WQ_MEM_RECLAIM work queue.
Signed-off-by: Keith Busch <keith.busch at intel.com>
---
drivers/nvme/host/pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index dda19cc..6d49e47 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1909,6 +1909,7 @@ static void nvme_reset_work(struct work_struct *work)
*/
if (dev->online_queues < 2) {
dev_warn(dev->ctrl.device, "IO queues not created\n");
+ nvme_kill_queues(&dev->ctrl);
nvme_remove_namespaces(&dev->ctrl);
} else {
nvme_start_queues(&dev->ctrl);
--
2.7.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] NVMe: Fix check_flush_dependency warning
2016-04-27 21:51 [PATCH] NVMe: Fix check_flush_dependency warning Keith Busch
@ 2016-04-28 11:22 ` Sagi Grimberg
2016-05-01 18:08 ` Christoph Hellwig
2016-05-02 15:10 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2016-04-28 11:22 UTC (permalink / raw)
Looks good,
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] NVMe: Fix check_flush_dependency warning
2016-04-27 21:51 [PATCH] NVMe: Fix check_flush_dependency warning Keith Busch
2016-04-28 11:22 ` Sagi Grimberg
@ 2016-05-01 18:08 ` Christoph Hellwig
2016-05-02 15:10 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2016-05-01 18:08 UTC (permalink / raw)
On Wed, Apr 27, 2016@03:51:18PM -0600, Keith Busch wrote:
> If the controller fails and is degraded after a reset, we need to kill
> off all requests queues before removing the inaccessble namespaces. This
> will prevent del_gendisk from syncing dirty data, which we can't due
> from a WQ_MEM_RECLAIM work queue.
>
> Signed-off-by: Keith Busch <keith.busch at intel.com>
Looks fine,
Reviewed-by: Christoph Hellwig <hch at lst.de>
Jens, any chance to get this and my state machine series in ASAP?
I have another one depending on the state machine series which will
need some changes due to this one, and having both of them in
a tree somewhere would help greatly with getting it out before the
end of the 4.7 merge window.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] NVMe: Fix check_flush_dependency warning
2016-04-27 21:51 [PATCH] NVMe: Fix check_flush_dependency warning Keith Busch
2016-04-28 11:22 ` Sagi Grimberg
2016-05-01 18:08 ` Christoph Hellwig
@ 2016-05-02 15:10 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2016-05-02 15:10 UTC (permalink / raw)
On 04/27/2016 03:51 PM, Keith Busch wrote:
> If the controller fails and is degraded after a reset, we need to kill
> off all requests queues before removing the inaccessble namespaces. This
> will prevent del_gendisk from syncing dirty data, which we can't due
> from a WQ_MEM_RECLAIM work queue.
>
> Signed-off-by: Keith Busch <keith.busch at intel.com>
Applied for 4.7.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-05-02 15:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 21:51 [PATCH] NVMe: Fix check_flush_dependency warning Keith Busch
2016-04-28 11:22 ` Sagi Grimberg
2016-05-01 18:08 ` Christoph Hellwig
2016-05-02 15:10 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.