diff options
| author | 2018-05-23 11:58:33 -0400 | |
|---|---|---|
| committer | 2018-08-06 13:12:30 +0200 | |
| commit | b5e6c3e170b77025b5f6174258c7ad71eed2d4de (patch) | |
| tree | 5be5957abc526d16b99d8b43c5913aa9b844cdb1 /fs/btrfs/tree-log.c | |
| parent | btrfs: Fix comment in lookup_inline_extent_backref (diff) | |
| download | linux-dev-b5e6c3e170b77025b5f6174258c7ad71eed2d4de.tar.xz linux-dev-b5e6c3e170b77025b5f6174258c7ad71eed2d4de.zip | |
btrfs: always wait on ordered extents at fsync time
There's a priority inversion that exists currently with btrfs fsync. In
some cases we will collect outstanding ordered extents onto a list and
only wait on them at the very last second. However this "very last
second" falls inside of a transaction handle, so if we are in a lower
priority cgroup we can end up holding the transaction open for longer
than needed, so if a high priority cgroup is also trying to fsync()
it'll see latency.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions
