]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30031f8fa61cb193a08a07604eb803a63ac5dd5a
treeef916e48f6bced5a29de12ce29da9fa7e7b13ac4
parent8eda6ea02c758cc439a935c10ee747b76ec00c48
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