summaryrefslogtreecommitdiffstats
path: root/block/Kconfig
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-03-27 02:49:53 +0200
committerDavid Sterba <dsterba@suse.com>2023-04-17 18:01:22 +0200
commit2c275afeb61dab732353aae2c7de01b6a87dcefc (patch)
treedd6e0f0dbecf7aeceb15226e0f28ee20652af25a /block/Kconfig
parentblock: async_bio_lock does not need to be bh-safe (diff)
downloadlinux-2c275afeb61dab732353aae2c7de01b6a87dcefc.tar.xz
linux-2c275afeb61dab732353aae2c7de01b6a87dcefc.zip
block: make blkcg_punt_bio_submit optional
Guard all the code to punt bios to a per-cgroup submission helper by a new CONFIG_BLK_CGROUP_PUNT_BIO symbol that is selected by btrfs. This way non-btrfs kernel builds don't need to have this code. Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block/Kconfig')
-rw-r--r--block/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/Kconfig b/block/Kconfig
index 941b2dca70db..69ccf7457ae1 100644
--- a/block/Kconfig
+++ b/block/Kconfig
@@ -41,6 +41,9 @@ config BLK_RQ_ALLOC_TIME
config BLK_CGROUP_RWSTAT
bool
+config BLK_CGROUP_PUNT_BIO
+ bool
+
config BLK_DEV_BSG_COMMON
tristate