deadline-iosched: Introduce dispatch helpers
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 21 Dec 2017 06:43:41 +0000 (15:43 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jan 2018 16:22:17 +0000 (09:22 -0700)
commitc117bac70133dbff9ed7fcbd91ef82b4ee518797
treec7ce23c0147bfc758e15f367881edbdba325d67e
parent5700f69178e91a6b21250049b86148ed5e9550c1
deadline-iosched: 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
deadline_dispatch_requests() for zoned block devices.

While at it, also remove the unnecessary forward declaration of the
function deadline_move_request().

Signed-off-by: Damien Le Moal <damien.lemoal@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/deadline-iosched.c