Revert "blk-mq, elevator: Count requests per hctx to improve performance"
authorJan Kara <jack@suse.cz>
Mon, 11 Jan 2021 16:47:16 +0000 (17:47 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 01:19:46 +0000 (18:19 -0700)
commit5ac83c644f5fb924f0b2c09102ab82fc788f8411
tree44ecf60a95b280219d2872c1dec05a3f6f9a7e72
parent2391d13ed484df1515f0025458e1f82317823fab
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>
block/bfq-iosched.c
block/blk-mq.c
block/mq-deadline.c
include/linux/blk-mq.h