diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-14 03:40:08 +0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-22 22:00:07 +0400 |
commit | bf57229745f849e500ba69ff91e35bc8160a7373 (patch) | |
tree | 9b90e6c5b32e96b082ad5c135c22de2c9cc82b77 /drivers/block/null_blk.c | |
parent | 6d11fb454b161a4565c57be6f1c5527235741003 (diff) | |
download | linux-bf57229745f849e500ba69ff91e35bc8160a7373.tar.xz |
blk-mq: remove REQ_END
Pass an explicit parameter for the last request in a batch to ->queue_rq
instead of using a request flag. Besides being a cleaner and non-stateful
interface this is also required for the next patch, which fixes the blk-mq
I/O submission code to not start a time too early.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/null_blk.c')
-rw-r--r-- | drivers/block/null_blk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index 00d469c7f9f7..c5b7315c2c13 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -313,7 +313,8 @@ static void null_request_fn(struct request_queue *q) } } -static int null_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *rq) +static int null_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *rq, + bool last) { struct nullb_cmd *cmd = blk_mq_rq_to_pdu(rq); |