aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2021-01-11 17:47:16 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-24 18:19:46 -0700
commit5ac83c644f5fb924f0b2c09102ab82fc788f8411 (patch)
tree44ecf60a95b280219d2872c1dec05a3f6f9a7e72 /block/blk-mq.c
parentblock, bfq: do not expire a queue when it is the only busy one (diff)
downloadlinux-dev-5ac83c644f5fb924f0b2c09102ab82fc788f8411.tar.xz
linux-dev-5ac83c644f5fb924f0b2c09102ab82fc788f8411.zip
Revert "blk-mq, elevator: Count requests per hctx to improve performance"
This reverts commit b445547ec1bbd3e7bf4b1c142550942f70527d95. Since both mq-deadline and BFQ completely ignore hctx they are passed to their dispatch function and dispatch whatever request they deem fit checking whether any request for a particular hctx is queued is just pointless since we'll very likely get a request from a different hctx anyway. In the following commit we'll deal with lock contention in these IO schedulers in presence of multiple HW queues in a different way. Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 74b17b396f4c..1af6b8a9da5a 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2653,7 +2653,6 @@ blk_mq_alloc_hctx(struct request_queue *q, struct blk_mq_tag_set *set,
goto free_hctx;
atomic_set(&hctx->nr_active, 0);
- atomic_set(&hctx->elevator_queued, 0);
if (node == NUMA_NO_NODE)
node = set->numa_node;
hctx->numa_node = node;