blk-mq: get rid of manual run of queue with __blk_mq_run_hw_queue()
authorJens Axboe <axboe@fb.com>
Wed, 21 Sep 2016 16:08:43 +0000 (10:08 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 22 Sep 2016 15:39:53 +0000 (09:39 -0600)
commit841bac2c87fc21c3ecf3bc3354855921735aeec1
tree950195b86586bf2aee0fc21229d083a5b139b1b6
parent491221f88d00651e449c9caf7415b6453c8a77b7
blk-mq: get rid of manual run of queue with __blk_mq_run_hw_queue()

Two cases:

1) blk_mq_alloc_request() needlessly re-runs the queue, after
   calling into the tag allocation without NOWAIT set. We don't
   need to do that.

2) blk_mq_map_request() should just use blk_mq_run_hw_queue() with
   the async flag set to false.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
block/blk-mq.c