blk-mq-sched: don't run the queue async from blk_mq_try_issue_directly()
authorJens Axboe <axboe@fb.com>
Tue, 14 Mar 2017 17:51:59 +0000 (11:51 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 14 Mar 2017 17:51:59 +0000 (11:51 -0600)
commit9c62110454b088b4914ffe375c2dbc19643eac34
tree37f65ae1ac5073f4bf3d31b94b1bc5fc7c706072
parent4a3a485b1ed0e109718cc8c9d094fa0f552de9b2
blk-mq-sched: don't run the queue async from blk_mq_try_issue_directly()

If we have scheduling enabled, we jump directly to insert-and-run.
That's fine, but we run the queue async and we don't pass in information
on whether we can block from this context or not. Fixup both these
cases.

Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c