From: Tejun Heo <tj@kernel.org>
To: David Carlier <devnexen@gmail.com>
Cc: David Vernet <void@manifault.com>,
Andrea Righi <arighi@nvidia.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sched_ext: Use READ_ONCE() for the read side of dsq->seq update
Date: Sat, 7 Mar 2026 14:17:46 -1000 [thread overview]
Message-ID: <aazAKthKUPwENvbV@slm.duckdns.org> (raw)
In-Reply-To: <20260307233204.30749-1-devnexen@gmail.com>
On Sat, Mar 07, 2026 at 11:32:04PM +0000, David Carlier wrote:
> - WRITE_ONCE(dsq->seq, dsq->seq + 1);
> - p->scx.dsq_seq = dsq->seq;
> + nseq = READ_ONCE(dsq->seq) + 1;
> + WRITE_ONCE(dsq->seq, nseq);
> + p->scx.dsq_seq = nseq;
Does this actually trigger KCSAN or wsa this just generated by AI? dsq->seq
is protected by dsq lock. I don't see how dsq->seq load can become a racy
read.
--
tejun
next prev parent reply other threads:[~2026-03-08 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 23:32 [PATCH] sched_ext: Use READ_ONCE() for the read side of dsq->seq update David Carlier
2026-03-08 0:17 ` Tejun Heo [this message]
2026-03-08 4:22 ` David CARLIER
2026-03-08 7:48 ` Tejun Heo
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=aazAKthKUPwENvbV@slm.duckdns.org \
--to=tj@kernel.org \
--cc=arighi@nvidia.com \
--cc=devnexen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=void@manifault.com \
/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.