]> git.itanic.dy.fi Git - linux-stable/commit
block/mq-deadline: Set the fifo_time member also if inserting at head
authorBart Van Assche <bvanassche@acm.org>
Fri, 13 May 2022 17:13:07 +0000 (10:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 May 2022 23:02:46 +0000 (17:02 -0600)
commit725f22a1477c9c15aa67ad3af96fe28ec4fe72d2
treed2f3270d45e409aa827d3c47d4c2e6321dd63474
parentf1c8781ac9d87650ccf45a354c0bbfa3f9230371
block/mq-deadline: Set the fifo_time member also if inserting at head

Before commit 322cff70d46c the fifo_time member of requests on a dispatch
list was not used. Commit 322cff70d46c introduces code that reads the
fifo_time member of requests on dispatch lists. Hence this patch that sets
the fifo_time member when adding a request to a dispatch list.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Fixes: 322cff70d46c ("block/mq-deadline: Prioritize high-priority requests")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20220513171307.32564-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c