diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-12-12 01:07:06 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-12-30 16:07:16 +0100 |
commit | 7b62e66cbbfb463a39bf83e30bdbbb4b9e83fa03 (patch) | |
tree | 2113465e2c867f36fffb374fe49417982584eaa6 /crypto | |
parent | btrfs: send: remove WARN_ON for readonly mount (diff) | |
download | linux-7b62e66cbbfb463a39bf83e30bdbbb4b9e83fa03.tar.xz linux-7b62e66cbbfb463a39bf83e30bdbbb4b9e83fa03.zip |
btrfs: punt all bios created in btrfs_submit_compressed_write()
Compressed writes happen in the background via kworkers. However, this
causes bios to be attributed to root bypassing any cgroup limits from
the actual writer. We tag the first bio with REQ_CGROUP_PUNT, which will
punt the bio to an appropriate cgroup specific workqueue and attribute
the IO properly. However, if btrfs_submit_compressed_write() creates a
new bio, we don't tag it the same way. Add the appropriate tagging for
subsequent bios.
Fixes: ec39f7696ccfa ("Btrfs: use REQ_CGROUP_PUNT for worker thread submitted bios")
Reviewed-by: Chris Mason <clm@fb.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions