]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - block/bfq-iosched.c
block, bfq: re-evaluate convenience of I/O plugging on rq arrivals
authorPaolo Valente <paolo.valente@linaro.org>
Mon, 25 Jan 2021 19:02:44 +0000 (20:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 21:18:31 +0000 (14:18 -0700)
commit7f1995c27b19060dbdff23442f375e3097c90707
tree8f8ab896447363c0e30b15ed83c2fb4622f52042
parenteb2fd80f9d2c515a901599362e83bc3356fc5e97
block, bfq: re-evaluate convenience of I/O plugging on rq arrivals

Upon an I/O-dispatch attempt, BFQ may detect that it was better to
plug I/O dispatch, and to wait for a new request to arrive for the
currently in-service queue. But the arrival of a new request for an
empty bfq_queue, and thus the switch from idle to busy of the
bfq_queue, may cause the scenario to change, and make plugging no
longer needed for service guarantees, or more convenient for
throughput. In this case, keeping I/O-dispatch plugged would certainly
lower throughput.

To address this issue, this commit makes such a check, and stops
plugging I/O if it is better to stop plugging I/O.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c