]> 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)
commit156e26ab1981959e550ae8a8ad7dfa4361aa8a31
tree6f4581ccceff280457f476b79ac7645d2a8df5c7
parent04f36f388bcdb3288f82c08e1c9af7932b7504b4
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