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>
Mon, 30 Mar 2015 18:54:46 +0000 (12:54 -0600)
commit33b42f77b950e85ee0caced4c14f4870faeabb88
treeceb6ef9d48daf076c5483d1227aec7521f56fbb3
parentb9c822d83817bb2032b99fc3e157c6e3266d3c83
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