blk-mq: abstract tag allocation out into sbitmap library
authorOmar Sandoval <osandov@fb.com>
Sat, 17 Sep 2016 14:38:44 +0000 (08:38 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 17 Sep 2016 14:38:44 +0000 (08:38 -0600)
commit88459642cba452630326b9cab1c651e09577d4e4
treecd7ecd917b294a92ff827b0e7dab526f0069547f
parent703fd1c0f177219e3a84e6c095c31dc566514d81
blk-mq: abstract tag allocation out into sbitmap library

This is a generally useful data structure, so make it available to
anyone else who might want to use it. It's also a nice cleanup
separating the allocation logic from the rest of the tag handling logic.

The code is behind a new Kconfig option, CONFIG_SBITMAP, which is only
selected by CONFIG_BLOCK for now.

This should be a complete noop functionality-wise.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
MAINTAINERS
block/Kconfig
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk-mq.h
include/linux/blk-mq.h
include/linux/sbitmap.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/sbitmap.c [new file with mode: 0644]