block: move call of scheduler's ->completed_request() hook
authorOmar Sandoval <osandov@fb.com>
Thu, 27 Sep 2018 22:55:51 +0000 (15:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2018 23:34:52 +0000 (17:34 -0600)
commited88660a5372faa67c168c3db5201e33e488c9fd
tree8019473ab93c4b987cf07da9cad88d7cf60a69ed
parent986d413b7c156e69198dfc80fb74aa18d0ddef44
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>
block/blk-mq-sched.h
block/blk-mq.c
block/kyber-iosched.c
include/linux/elevator.h