btrfs: also use kthread_associate_blkcg for uncompressible ranges
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Mar 2023 00:49:49 +0000 (09:49 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:22 +0000 (18:01 +0200)
commit896d7c1a90f33e9c6ee9002d53980dde4d8b99ee
tree24f48dbbbd99537e78e3628d6fd733423a8a646b
parente43a6210b79815dbd33705b11fe44141f53f371f
btrfs: also use kthread_associate_blkcg for uncompressible ranges

submit_one_async_extent needs to use submit_one_async_extent no matter
if the range it handles ends up beeing compressed or not as the deadlock
risk due to cgroup thottling is the same.  Call kthread_associate_blkcg
earlier to cover submit_uncompressed_range case as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c