Skip to content
Commit b6d2b054 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe
Browse files

mq-deadline: Fix request accounting



The block layer may call the I/O scheduler .finish_request() callback
without having called the .insert_requests() callback. Make sure that the
mq-deadline I/O statistics are correct if the block layer inserts an I/O
request that bypasses the I/O scheduler. This patch prevents that lower
priority I/O is delayed longer than necessary for mixed I/O priority
workloads.

Cc: Niklas Cassel <Niklas.Cassel@wdc.com>
Cc: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Hannes Reinecke <hare@suse.de>
Reported-by: default avatarNiklas Cassel <Niklas.Cassel@wdc.com>
Fixes: 08a9ad8b ("block/mq-deadline: Add cgroup support")
Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20210824170520.1659173-1-bvanassche@acm.org


Reviewed-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
Tested-by: default avatarNiklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a9ed27a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment