diff options
author | Jens Axboe <axboe@fb.com> | 2017-01-13 16:09:05 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-17 18:03:59 +0100 |
commit | 4941115bef2bc891aa00a2f0edeaf06dc982325a (patch) | |
tree | 5f69e1404d076096cf0f00eac8859db627c6fcdb /block/blk-mq.h | |
parent | blk-mq: export some helpers we need to the scheduling framework (diff) | |
download | linux-4941115bef2bc891aa00a2f0edeaf06dc982325a.tar.xz linux-4941115bef2bc891aa00a2f0edeaf06dc982325a.zip |
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 <axboe@fb.com>
[hch: even more cleanups]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Diffstat (limited to '')
-rw-r--r-- | block/blk-mq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index e59f5ca520a2..48b7771eb192 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -118,6 +118,11 @@ static inline void blk_mq_set_alloc_data(struct blk_mq_alloc_data *data, data->hctx = hctx; } +static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data *data) +{ + return data->hctx->tags; +} + /* * Internal helpers for request allocation/init/free */ |