]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: add shallow depth option for blk_mq_get_tag()
authorOmar Sandoval <osandov@fb.com>
Fri, 14 Apr 2017 07:59:59 +0000 (00:59 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 14 Apr 2017 20:06:54 +0000 (14:06 -0600)
commit2b2ba6f53ebf5191346baa45bafb7cce2d4e630f
tree399e4d8109e92ec0ea8069dd2d331328a2c2c284
parenta35a9b17325d93ebcf8a96ac3264407805b06450
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>
block/blk-mq-tag.c
block/blk-mq.h