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)
commitdad7a3be4960e5545882a0cd8d7613af22874314
tree6f4581ccceff280457f476b79ac7645d2a8df5c7
parent3116a23bb30272d74ea81baf5d0ee23f602dd15b
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