]> git.baikalelectronics.ru Git - kernel.git/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)
commit7dcc8c309d01c285f1d51e90d33207f59a3b0365
treed2f3270d45e409aa827d3c47d4c2e6321dd63474
parent74d495a6aab8abf83b388a388c5dce75e6af9430
block/mq-deadline: Set the fifo_time member also if inserting at head

Before commit 817f6136e80d the fifo_time member of requests on a dispatch
list was not used. Commit 817f6136e80d 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: 817f6136e80d ("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