]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: pass correct hctx to blk_mq_try_issue_directly
authorMing Lei <ming.lei@redhat.com>
Tue, 6 Jun 2017 15:21:59 +0000 (23:21 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 6 Jun 2017 16:00:33 +0000 (10:00 -0600)
commitf07c560ef47abd71f8d61c48071049e136216a69
tree6f4581ccceff280457f476b79ac7645d2a8df5c7
parenta39c78a2ec544c21d896f51cdf2151c8f4075e9b
blk-mq: pass correct hctx to blk_mq_try_issue_directly

When direct issue is done on request picked up from plug list,
the hctx need to be updated with the actual hw queue, otherwise
wrong hctx is used and may hurt performance, especially when
wrong SRCU readlock is acquired/released

Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c