]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffb93f644cbf4e18790fb37b8eb2143b69733771
tree43e7156fc29628569a5a065e38e54719fa754325
parentbe2b1e65932a405822e37a9bc8d4ebe984fce5ce
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