diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-10-16 18:02:23 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-30 23:15:10 +0100 |
| commit | 8b797abaaf0f9447f98c05a148b5b35c39b88f8a (patch) | |
| tree | 6a818eb59ff1c5c97ee6101807812877a1e57895 /tools/lib/python | |
| parent | e6dc2b2e22556d88bf4ce9e7821ddd40c061f635 (diff) | |
btrfs: scrub: fix race between scrub and scrub progress ioctl
The scrub progress ioctl is copying the scrub progress stats without
acquiring the spinlock that protects it and a concurrent scrub can be
updating the stats at the same time which can lead to load tearing
issues. So take the spinlock when copying the progress stats.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
