summaryrefslogtreecommitdiff
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-05-23 18:58:33 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 14:12:30 +0300
commitb5e6c3e170b77025b5f6174258c7ad71eed2d4de (patch)
tree5be5957abc526d16b99d8b43c5913aa9b844cdb1 /fs/btrfs/tree-log.c
parent16d1c062c7de2999ea7be61d31070fa4ce3d99c4 (diff)
downloadlinux-b5e6c3e170b77025b5f6174258c7ad71eed2d4de.tar.xz
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