blk-mq: re-check for available tags after running the hardware queue
authorJens Axboe <axboe@fb.com>
Mon, 8 Dec 2014 15:49:06 +0000 (08:49 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:56 +0000 (12:54 -0600)
commitd1cf73b1d7990ee3f722fdeb7e2a191e15c4f0a0
tree807990668adc59ffed2bb4a10ed5f1fb6e93080f
parent3cb2b0e7721d36b8f2f71e75a0366195102b6517
blk-mq: re-check for available tags after running the hardware queue

If we run out of tags and have to sleep, we run the hardware queue
to kick pending IO into gear. During that run, we may have completed
requests, so re-check if we have free tags before going to sleep.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c