summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorNiels Dossche <dossche.niels@gmail.com>2022-04-22 20:05:04 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2022-05-06 10:18:11 -0700
commit4de851459ea65ac8cf4313af648ec9cf16b72562 (patch)
tree4aaf71fd474dc807b387323f78ebf95e012cdbe8 /tools/perf/scripts/python/export-to-sqlite.py
parenta7b8618aa2f0f926ce85f2486ac835a85c753ca7 (diff)
f2fs: extend stat_lock to avoid potential race in statfs
There are multiple calculations and reads of fields of sbi that should be protected by stat_lock. As stat_lock is not used to read these values in statfs, this can lead to inconsistent results. Extend the locking to prevent this issue. Commit c9c8ed50d94c ("f2fs: fix to avoid potential race on sbi->unusable_block_count access/update") already added the use of sbi->stat_lock in statfs in order to make the calculation of multiple, different fields atomic so that results are consistent. This is similar to that patch regarding the change in statfs. Signed-off-by: Niels Dossche <dossche.niels@gmail.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions