blk-mq: don't wait in blk_mq_queue_enter() if __GFP_WAIT isn't set
authorKeith Busch <keith.busch@intel.com>
Thu, 12 Mar 2015 03:56:39 +0000 (23:56 -0400)
committerJens Axboe <axboe@fb.com>
Fri, 13 Mar 2015 14:30:55 +0000 (08:30 -0600)
commitbfd343aa1718457d34b99ce6573085ac340da288
tree43e7156fc29628569a5a065e38e54719fa754325
parentb94ec296403e99d5ac9a8c48332cec4118d44b94
blk-mq: don't wait in blk_mq_queue_enter() if __GFP_WAIT isn't set

Return -EBUSY if we're unable to enter a queue immediately when
allocating a blk-mq request without __GFP_WAIT.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c