]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: I/O and timer unplugs are inverted in blktrace
authorIlya Dryomov <idryomov@gmail.com>
Wed, 26 Sep 2018 12:35:50 +0000 (14:35 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Sep 2018 19:12:44 +0000 (13:12 -0600)
commit76e382c36a22dee0a3306da17a61bc2f3834c3ec
treeb9ee430b0d44ed832f341b35fceca990a29d9496
parent9719cc910dd142187425f24882b280d73e713b2d
blk-mq: I/O and timer unplugs are inverted in blktrace

trace_block_unplug() takes true for explicit unplugs and false for
implicit unplugs.  schedule() unplugs are implicit and should be
reported as timer unplugs.  While correct in the legacy code, this has
been inverted in blk-mq since 4.11.

Cc: stable@vger.kernel.org
Fixes: f0679950ad9f ("blk-mq-sched: add framework for MQ capable IO schedulers")
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c