btrfs, block: move REQ_CGROUP_PUNT to btrfs
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Mar 2023 00:49:51 +0000 (09:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:22 +0000 (18:01 +0200)
commit3480373ebdf7625ee29bee6508c9fc4ae70c00bf
treedddeb5c65b5a3d8dd35e31347916ac7d4846ce7b
parent0a0596fbbe5bddd28b1dfae7e7ecb6d70bdbf059
btrfs, block: move REQ_CGROUP_PUNT to btrfs

REQ_CGROUP_PUNT is a bit annoying as it is hard to follow and adds
a branch to the bio submission hot path.  To fix this, export
blkcg_punt_bio_submit and let btrfs call it directly.  Add a new
REQ_FS_PRIVATE flag for btrfs to indicate to it's own low-level
bio submission code that a punt to the cgroup submission helper
is required.

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/blk-cgroup.c
block/blk-cgroup.h
block/blk-core.c
fs/btrfs/bio.c
fs/btrfs/bio.h
fs/btrfs/extent_io.c
fs/btrfs/inode.c
include/linux/bio.h
include/linux/blk_types.h