diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:41:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-09 19:50:42 +0200 |
commit | c66fd019713e9cf7d6f1243c378cd177d01fe18a (patch) | |
tree | 80ede76cba350b14391603e49f077eac477b9b6f /block/Kconfig | |
parent | loop: Select I/O scheduler 'none' from inside add_disk() (diff) | |
download | linux-c66fd019713e9cf7d6f1243c378cd177d01fe18a.tar.xz linux-c66fd019713e9cf7d6f1243c378cd177d01fe18a.zip |
block: make the block holder code optional
Move the block holder code into a separate file as it is not in any way
related to the other block_dev.c code, and add a new selectable config
option for it so that we don't have to build it without any remapped
drivers selected.
The Kconfig symbol contains a _DEPRECATED suffix to match the comments
added in commit 49731baa41df
("block: restore multiple bd_link_disk_holder() support").
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20210804094147.459763-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/Kconfig')
-rw-r--r-- | block/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/Kconfig b/block/Kconfig index 15dfb7660645..bac87d773c54 100644 --- a/block/Kconfig +++ b/block/Kconfig @@ -241,4 +241,8 @@ config BLK_MQ_RDMA config BLK_PM def_bool BLOCK && PM +# do not use in new code +config BLOCK_HOLDER_DEPRECATED + bool + source "block/Kconfig.iosched" |