]> 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)
commit384545a1467df5f84c12d4713cc6be02a2f35411
treeef916e48f6bced5a29de12ce29da9fa7e7b13ac4
parent8c7b20ba7f84a472903c70f676496ceac993110a
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