Re: [PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-12-04 Thread Jens Axboe
On 12/4/18 8:05 AM, Christoph Hellwig wrote: > On Mon, Dec 03, 2018 at 05:00:59PM -0800, Sagi Grimberg wrote: >> >>> @@ -2428,7 +2426,8 @@ static void nvme_dev_disable(struct nvme_dev *dev, >>> bool shutdown) >>> nvme_stop_queues(>ctrl); >>> if (!dead && dev->ctrl.queue_count > 0)

Re: [PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-12-04 Thread Christoph Hellwig
On Mon, Dec 03, 2018 at 05:00:59PM -0800, Sagi Grimberg wrote: > >> @@ -2428,7 +2426,8 @@ static void nvme_dev_disable(struct nvme_dev *dev, >> bool shutdown) >> nvme_stop_queues(>ctrl); >> if (!dead && dev->ctrl.queue_count > 0) { >> -nvme_disable_io_queues(dev); >> +

Re: [PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-12-03 Thread Sagi Grimberg
@@ -2428,7 +2426,8 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown) nvme_stop_queues(>ctrl); if (!dead && dev->ctrl.queue_count > 0) { - nvme_disable_io_queues(dev); + if (nvme_disable_io_queues(dev, nvme_admin_delete_sq)) +

[PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-12-02 Thread Christoph Hellwig
Pass the opcode for the delete SQ/CQ command as an argument instead of the somewhat confusing pass loop. Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch --- drivers/nvme/host/pci.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff

Re: [PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-11-29 Thread Keith Busch
On Thu, Nov 29, 2018 at 08:13:03PM +0100, Christoph Hellwig wrote: > Pass the opcode for the delete SQ/CQ command as an argument instead of > the somewhat confusing pass loop. > > Signed-off-by: Christoph Hellwig Looks good. Reviewed-by: Keith Busch

[PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-11-29 Thread Christoph Hellwig
Pass the opcode for the delete SQ/CQ command as an argument instead of the somewhat confusing pass loop. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git

[PATCH 06/13] nvme-pci: refactor nvme_disable_io_queues

2018-11-21 Thread Christoph Hellwig
Pass the opcode for the delete SQ/CQ command as an argument instead of the somewhat confusing pass loop. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff --git