summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-04-29 20:49:48 -0600
committerJens Axboe <axboe@fb.com>2014-04-29 20:49:48 -0600
commit5810d903fa3459e703ce82a1d45136813c6afad8 (patch)
treeef916e48f6bced5a29de12ce29da9fa7e7b13ac4 /block/blk-mq.c
parentbdcfa3e57c9d92b082d2378bc9a64a3a8750fa8d (diff)
downloadblackbird-obmc-linux-5810d903fa3459e703ce82a1d45136813c6afad8.tar.gz
blackbird-obmc-linux-5810d903fa3459e703ce82a1d45136813c6afad8.zip
blk-mq: fix waiting for reserved tags
blk_mq_wait_for_tags() is only able to wait for "normal" tags, not reserved tags. Pass in which one we should attempt to get a tag for, so that waiting for reserved tags will work. Reserved tags are used for internal commands, which are usually serialized. Hence no waiting generally takes place, but we should ensure that it actually works if users need that functionality. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index f2e92eb92803..0aee32568210 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -218,7 +218,7 @@ static struct request *blk_mq_alloc_request_pinned(struct request_queue *q,
break;
}
- blk_mq_wait_for_tags(hctx->tags);
+ blk_mq_wait_for_tags(hctx->tags, reserved);
} while (1);
return rq;
OpenPOWER on IntegriCloud