On Mon, Mar 27, 2023 at 09:49:46AM +0900, Christoph Hellwig wrote: > Hi all, > > the current code to offload bio submission into a cgroup-specific helper > thread when sent from the btrfs internal helper threads is a bit ugly. > > This series moves it into btrfs with minimal interference in the core > code. I can't speak for the cgroup side, but as btrfs is the only user of the REQ_CGROUP_PUNT flag pushing it down to the IO submission path makes sense. Code looks ok, it's a direct conversion. When the mm/block changes get an Ack I can put it to btrfs for-next.