summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-05-19 03:32:27 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-05-19 03:32:27 +0300
commitf993aed406eaf968ba3867a76bb46c95336a33d0 (patch)
treeaa6e5e25c58d35f325ab8237b816919b5d0b9637
parent01464a73a6387b45aa4cf6ea522abd4f9e44dce5 (diff)
parent725f22a1477c9c15aa67ad3af96fe28ec4fe72d2 (diff)
downloadlinux-f993aed406eaf968ba3867a76bb46c95336a33d0.tar.xz
Merge tag 'block-5.18-2022-05-18' of git://git.kernel.dk/linux-block
Pull block fix from Jens Axboe: "Just a small fix for a missing fifo time assigment for the head insertion case in mq-deadline" * tag 'block-5.18-2022-05-18' of git://git.kernel.dk/linux-block: block/mq-deadline: Set the fifo_time member also if inserting at head
-rw-r--r--block/mq-deadline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/mq-deadline.c b/block/mq-deadline.c
index 3ed5eaf3446a..6ed602b2f80a 100644
--- a/block/mq-deadline.c
+++ b/block/mq-deadline.c
@@ -742,6 +742,7 @@ static void dd_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq,
if (at_head) {
list_add(&rq->queuelist, &per_prio->dispatch);
+ rq->fifo_time = jiffies;
} else {
deadline_add_rq_rb(per_prio, rq);