blk-mq: fix waiting for reserved tags
authorJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 02:49:48 +0000 (20:49 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 30 Apr 2014 02:49:48 +0000 (20:49 -0600)
commit5810d903fa3459e703ce82a1d45136813c6afad8
treeef916e48f6bced5a29de12ce29da9fa7e7b13ac4
parentbdcfa3e57c9d92b082d2378bc9a64a3a8750fa8d
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>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c