[PATCH rfc 25/30] nvme: move control plane handling to nvme core

2017-06-18 Thread Sagi Grimberg
handle controller setup, reset and delete Signed-off-by: Sagi Grimberg --- drivers/nvme/host/core.c | 373 +++ drivers/nvme/host/nvme.h | 12 ++ drivers/nvme/host/rdma.c | 372 +- 3 files changed, 393 insert

Re: [PATCH rfc 25/30] nvme: move control plane handling to nvme core

2017-06-19 Thread Christoph Hellwig
> +static void nvme_free_io_queues(struct nvme_ctrl *ctrl) > +{ > + int i; > + > + for (i = 1; i < ctrl->queue_count; i++) > + ctrl->ops->free_hw_queue(ctrl, i); > +} > + > +void nvme_stop_io_queues(struct nvme_ctrl *ctrl) > +{ > + int i; > + > + for (i = 1; i < ctrl->qu

Re: [PATCH rfc 25/30] nvme: move control plane handling to nvme core

2017-06-19 Thread Sagi Grimberg
+static void nvme_free_io_queues(struct nvme_ctrl *ctrl) +{ + int i; + + for (i = 1; i < ctrl->queue_count; i++) + ctrl->ops->free_hw_queue(ctrl, i); +} + +void nvme_stop_io_queues(struct nvme_ctrl *ctrl) +{ + int i; + + for (i = 1; i < ctrl->queue_count; i++)