block: make blkcg_punt_bio_submit optional
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Mar 2023 00:49:53 +0000 (09:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:22 +0000 (18:01 +0200)
commit2c275afeb61dab732353aae2c7de01b6a87dcefc
treedd6e0f0dbecf7aeceb15226e0f28ee20652af25a
parent12be09fe18f2fd9f882ca0acbe14cf121250bcbe
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>
block/Kconfig
block/blk-cgroup.c
block/blk-cgroup.h
fs/btrfs/Kconfig