diff options
author | Niels Dossche <[email protected]> | 2022-02-25 22:20:28 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2022-03-14 13:13:53 +0100 |
commit | 06bae876634ebf837ba70ea3de532b288326103d (patch) | |
tree | df899f32f394187ec9b8206f2ec787b652f7a852 /fs/btrfs/disk-io.c | |
parent | ca5e4ea0beaec8bc674121838bf8614c089effb9 (diff) |
btrfs: extend locking to all space_info members accesses
bytes_pinned is always accessed under space_info->lock, except in
btrfs_preempt_reclaim_metadata_space, however the other members are
accessed under that lock. The reserved member of the rsv's are also
partially accessed under a lock and partially not. Move all these
accesses into the same lock to ensure consistency.
This could potentially race and lead to a flush instead of a commit but
it's not a big problem as it's only for preemptive flush.
CC: [email protected] # 5.15+
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Niels Dossche <[email protected]>
Signed-off-by: Niels Dossche <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions