From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: cem@kernel.org, stable@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 1/6] xfs: snapshot scrub stats when rendering them
Date: Mon, 7 Sep 2026 21:43:47 -0700 [thread overview]
Message-ID: <20260908044347.GA2619314@frogsfrogsfrogs> (raw)
In-Reply-To: <20260907055833.GA31753@lst.de>
On Mon, Sep 07, 2026 at 07:58:33AM +0200, Christoph Hellwig wrote:
> On Thu, Sep 03, 2026 at 11:26:02PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> >
> > 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.
>
> What concurrency problem? There should be no need to have an exact
> snapshot of all counters, so it's really READ_ONCE/WRITE_ONCE that
> are needed here I think?
Yeah, I suppose I could have gone with READ_ONCE instead of the
spinlock, but I also don't think the stats file is a hot path. :)
> Either way maybe add a comment explaining the snapshotting if we want
> to stick to it?
"Snapshot the entire stats object with a spinlock because this isn't a
hot path and we don't have to worry about users seeing slightly weird
numbers (e.g. invocations has incremented but none of the outcomes have)
if we race with xchk_stats_merge_one"?
--D
next prev parent reply other threads:[~2026-09-08 4:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-04 6:25 [PATCHSET] xfs: LLM-inspired bug fixes, part 11 Darrick J. Wong
2026-09-04 6:26 ` [PATCH 1/6] xfs: snapshot scrub stats when rendering them Darrick J. Wong
2026-09-04 6:48 ` Carlos Maiolino
2026-09-07 5:58 ` Christoph Hellwig
2026-09-08 4:43 ` Darrick J. Wong [this message]
2026-09-04 6:26 ` [PATCH 2/6] xfs: report healthy filesystem events in scrub stats Darrick J. Wong
2026-09-04 6:48 ` Carlos Maiolino
2026-09-07 5:58 ` Christoph Hellwig
2026-09-04 6:26 ` [PATCH 3/6] xfs: report runtime failures in scrub Darrick J. Wong
2026-09-04 6:59 ` Carlos Maiolino
2026-09-07 5:59 ` Christoph Hellwig
2026-09-04 6:26 ` [PATCH 4/6] xfs: remove redundant function declaration Darrick J. Wong
2026-09-04 6:59 ` Carlos Maiolino
2026-09-07 5:59 ` Christoph Hellwig
2026-09-04 6:27 ` [PATCH 5/6] xfs: snapshot old AGFL before rewriting it Darrick J. Wong
2026-09-04 7:34 ` Carlos Maiolino
2026-09-07 6:01 ` Christoph Hellwig
2026-09-04 6:27 ` [PATCH 6/6] xfs: bail out on bitmap errors in xrep_agfl_fill Darrick J. Wong
2026-09-04 7:38 ` Carlos Maiolino
2026-09-04 16:12 ` Darrick J. Wong
2026-09-04 16:13 ` [PATCH v1.1 " Darrick J. Wong
2026-09-04 19:11 ` Carlos Maiolino
2026-09-07 6:01 ` Christoph Hellwig
2026-09-07 6:28 ` Carlos Maiolino
2026-09-07 6:34 ` Carlos Maiolino
-- strict thread matches above, loose matches on Subject: below --
2026-09-09 6:02 [PATCHSET 1/2] xfs: LLM-inspired bug fixes, part 11 Darrick J. Wong
2026-09-09 6:03 ` [PATCH 1/6] xfs: snapshot scrub stats when rendering them Darrick J. Wong
2026-09-10 4:56 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260908044347.GA2619314@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=cem@kernel.org \
--cc=hch@lst.de \
--cc=linux-xfs@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.