nvme-loop: Add BLK_MQ_F_NO_SCHED flag to admin tag set
authorIsrael Rukshin <israelr@mellanox.com>
Wed, 18 Oct 2017 12:38:26 +0000 (12:38 +0000)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 08:58:54 +0000 (10:58 +0200)
This flag is useful for admin queues that aren't used for normal IO.

Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/loop.c

index 92628c4329262cdb210b97cc622990507f9ae0e4..c56354e1e4c6109d5a23abf519cf3295683b98cd 100644 (file)
@@ -365,6 +365,7 @@ static int nvme_loop_configure_admin_queue(struct nvme_loop_ctrl *ctrl)
        ctrl->admin_tag_set.driver_data = ctrl;
        ctrl->admin_tag_set.nr_hw_queues = 1;
        ctrl->admin_tag_set.timeout = ADMIN_TIMEOUT;
+       ctrl->admin_tag_set.flags = BLK_MQ_F_NO_SCHED;
 
        ctrl->queues[0].ctrl = ctrl;
        error = nvmet_sq_init(&ctrl->queues[0].nvme_sq);