blk-mq: make the blk-mq stacking code optional
authorChristoph Hellwig <hch@lst.de>
Tue, 15 Feb 2022 10:05:36 +0000 (11:05 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Feb 2022 02:39:09 +0000 (19:39 -0700)
commit248c793359daacd826a7507a258ffe41653efef7
tree069d8709c9dcda5de41ec5ad7b62f0375bd9859a
parentf122d103b564e5fb7c82de902c6f8f6cbdf50ec9
blk-mq: make the blk-mq stacking code optional

The code to stack blk-mq drivers is only used by dm-multipath, and
will preferably stay that way.  Make it optional and only selected
by device mapper, so that the buildbots more easily catch abuses
like the one that slipped in in the ufs driver in the last merged
window.  Another positive side effects is that kernel builds without
device mapper shrink a little bit as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220215100540.3892965-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/Kconfig
block/blk-mq.c
drivers/md/Kconfig