summaryrefslogtreecommitdiff
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-04-14 10:59:59 +0300
committerJens Axboe <axboe@fb.com>2017-04-14 23:06:54 +0300
commit229a92873f3afc20b0d91aaaec08cbc11689dd8b (patch)
tree399e4d8109e92ec0ea8069dd2d331328a2c2c284 /block/blk-mq.h
parentc05e66733788118377c21a913c1bc7b64bccc167 (diff)
downloadlinux-229a92873f3afc20b0d91aaaec08cbc11689dd8b.tar.xz
blk-mq: add shallow depth option for blk_mq_get_tag()
Wire up the sbitmap_get_shallow() operation to the tag code so that a caller can limit the number of tags available to it. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r--block/blk-mq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h
index 7e6f2e467696..524f44742816 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -141,6 +141,7 @@ struct blk_mq_alloc_data {
/* input parameter */
struct request_queue *q;
unsigned int flags;
+ unsigned int shallow_depth;
/* input & output parameter */
struct blk_mq_ctx *ctx;