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, 8 Dec 2014 15:49:06 +0000 (08:49 -0700)
commit080ff3511450fd73948697fef34a3cc382675b59
tree8ce40121a12ef2d48c0c094f3b3751069490a29b
parentb32232073e8061b41258bff2a10a06a91677480a
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