diff options
author | Omar Sandoval <osandov@fb.com> | 2018-09-27 15:55:51 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-09-27 17:34:52 -0600 |
commit | ed88660a5372faa67c168c3db5201e33e488c9fd (patch) | |
tree | 8019473ab93c4b987cf07da9cad88d7cf60a69ed /include/linux | |
parent | 986d413b7c156e69198dfc80fb74aa18d0ddef44 (diff) | |
download | linux-ed88660a5372faa67c168c3db5201e33e488c9fd.tar.gz linux-ed88660a5372faa67c168c3db5201e33e488c9fd.tar.bz2 linux-ed88660a5372faa67c168c3db5201e33e488c9fd.zip |
block: move call of scheduler's ->completed_request() hook
Commit 4bc6339a583c ("block: move blk_stat_add() to
__blk_mq_end_request()") consolidated some calls using ktime_get() so
we'd only need to call it once. Kyber's ->completed_request() hook also
calls ktime_get(), so let's move it to the same place, too.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/elevator.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/elevator.h b/include/linux/elevator.h index a02deea30185..015bb59c0331 100644 --- a/include/linux/elevator.h +++ b/include/linux/elevator.h @@ -111,7 +111,7 @@ struct elevator_mq_ops { void (*insert_requests)(struct blk_mq_hw_ctx *, struct list_head *, bool); struct request *(*dispatch_request)(struct blk_mq_hw_ctx *); bool (*has_work)(struct blk_mq_hw_ctx *); - void (*completed_request)(struct request *); + void (*completed_request)(struct request *, u64); void (*started_request)(struct request *); void (*requeue_request)(struct request *); struct request *(*former_request)(struct request_queue *, struct request *); |