]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq-sched: make completed_request() callback more useful
authorOmar Sandoval <osandov@fb.com>
Fri, 14 Apr 2017 08:00:01 +0000 (01:00 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 14 Apr 2017 20:06:57 +0000 (14:06 -0600)
commit5d0e7fb695f75e6d3e6da4304897406c3d96a0e3
treefe474e51721e497374bbf6e674f883e54138e699
parent2db0008696a2458d685cd39433afbe738f46b826
blk-mq-sched: make completed_request() callback more useful

Currently, this callback is called right after put_request() and has no
distinguishable purpose. Instead, let's call it before put_request() as
soon as I/O has completed on the request, before we account it in
blk-stat. With this, Kyber can enable stats when it sees a latency
outlier and make sure the outlier gets accounted.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.h
block/blk-mq.c
include/linux/elevator.h