]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block/mq-deadline: Switch back to a single dispatch list
authorBart Van Assche <bvanassche@acm.org>
Mon, 13 Oct 2025 19:28:03 +0000 (12:28 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Oct 2025 16:37:42 +0000 (10:37 -0600)
commitd60055cf52703a705b86fb25b9b7931ec7ee399c
treeb330777dea937a9076018255d1e01f1e09f59b70
parent93a358af59c6e8ab00b57cfdb1c437516a4948ca
block/mq-deadline: Switch back to a single dispatch list

Commit c807ab520fc3 ("block/mq-deadline: Add I/O priority support")
modified the behavior of request flag BLK_MQ_INSERT_AT_HEAD from
dispatching a request before other requests into dispatching a request
before other requests with the same I/O priority. This is not correct since
BLK_MQ_INSERT_AT_HEAD is used when requeuing requests and also when a flush
request is inserted.  Both types of requests should be dispatched as soon
as possible. Hence, make the mq-deadline I/O scheduler again ignore the I/O
priority for BLK_MQ_INSERT_AT_HEAD requests.

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Yu Kuai <yukuai@kernel.org>
Reported-by: chengkaitao <chengkaitao@kylinos.cn>
Closes: https://lore.kernel.org/linux-block/20251009155253.14611-1-pilgrimtao@gmail.com/
Fixes: c807ab520fc3 ("block/mq-deadline: Add I/O priority support")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moalv <dlemoal@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c