summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-10-16 18:02:23 +0100
committerDavid Sterba <dsterba@suse.com>2026-10-30 23:15:10 +0100
commit8b797abaaf0f9447f98c05a148b5b35c39b88f8a (patch)
tree6a818eb59ff1c5c97ee6101807812877a1e57895 /tools/lib/python
parente6dc2b2e22556d88bf4ce9e7821ddd40c061f635 (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