]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - block/mq-deadline.c
mq-deadline: Introduce dispatch helpers
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 21 Dec 2017 06:43:39 +0000 (15:43 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 16:22:17 +0000 (09:22 -0700)
commitbf09ce56f0e654b94d980b9aa89e3fce78887e01
tree9ef99109ad0b7629d29be6d506013b6fa8072801
parent6cc77e9cb08041627fe1d32ac3a743249deb8167
mq-deadline: Introduce dispatch helpers

Avoid directly referencing the next_rq and fifo_list arrays using the
helper functions deadline_next_request() and deadline_fifo_request() to
facilitate changes in the dispatch request selection in
__dd_dispatch_request() for zoned block devices.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Bart Van Assche <Bart.VanAssche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/mq-deadline.c