path: root/block/blk-mq-tag.h
diff options
authorJens Axboe <>2017-01-13 08:09:05 -0700
committerJens Axboe <>2017-01-17 10:03:59 -0700
commit4941115bef2bc891aa00a2f0edeaf06dc982325a (patch)
tree5f69e1404d076096cf0f00eac8859db627c6fcdb /block/blk-mq-tag.h
parent2c3ad667902ef6f4b60ef0a3c6f7d8c2b007769a (diff)
blk-mq-tag: cleanup the normal/reserved tag allocation
This is in preparation for having another tag set available. Cleanup the parameters, and allow passing in of tags for blk_mq_put_tag(). Signed-off-by: Jens Axboe <> [hch: even more cleanups] Signed-off-by: Christoph Hellwig <> Reviewed-by: Omar Sandoval <>
Diffstat (limited to 'block/blk-mq-tag.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-mq-tag.h b/block/blk-mq-tag.h
index d1662734dc53..923602dd3bfb 100644
--- a/block/blk-mq-tag.h
+++ b/block/blk-mq-tag.h
@@ -24,8 +24,8 @@ extern struct blk_mq_tags *blk_mq_init_tags(unsigned int nr_tags, unsigned int r
extern void blk_mq_free_tags(struct blk_mq_tags *tags);
extern unsigned int blk_mq_get_tag(struct blk_mq_alloc_data *data);
-extern void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, struct blk_mq_ctx *ctx,
- unsigned int tag);
+extern void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, struct blk_mq_tags *tags,
+ struct blk_mq_ctx *ctx, unsigned int tag);
extern bool blk_mq_has_free_tags(struct blk_mq_tags *tags);
extern ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page);
extern int blk_mq_tag_update_depth(struct blk_mq_tags *tags, unsigned int depth);