diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-09-08 23:03:02 -0700 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-09-10 16:26:36 +0200 |
| commit | 568a1588b906780dc3e9be56a61217afb4f7800e (patch) | |
| tree | 6d3ba67670d32b288413e5bd0358823eecb1c47b /scripts/Makefile.thinlto | |
| parent | 157dcb8230a4e882e099ec4d1cb1957b0b2c9b26 (diff) | |
| download | linux-568a1588b906780dc3e9be56a61217afb4f7800e.tar.gz linux-568a1588b906780dc3e9be56a61217afb4f7800e.zip | |
xfs: snapshot scrub stats when rendering them
LOLLM complains about concurrency problems in the scrub stats code
because xchk_stats_format doesn't synchronize in any way with updates.
These stats are only reported through debugfs so I don't think it really
matters, but I guess I exist to make bots happy now.
Note: We snapshot the entire stats object with a spinlock so that we
don't have to worry about users seeing slightly weird numbers (e.g.
invocations has incremented but none of the outcomes have been yet) if
we race with xchk_stats_merge_one. This isn't a hot path.
Cc: stable@vger.kernel.org # v6.6
Fixes: d7a74cad8f4513 ("xfs: track usage statistics of online fsck")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
