]> 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)
commit796d327a2cf19e0671c7e282376dd58e23abf9da
treeb9ee430b0d44ed832f341b35fceca990a29d9496
parentb152e9bd2ba1fecbcc5a8e9ef2fcf9231f316f92
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: 1dfbfa22b938 ("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