From: William Breathitt Gray <wbg@kernel.org>
To: linux-iio@vger.kernel.org,
Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: William Breathitt Gray <wbg@kernel.org>,
Oleksij Rempel <o.rempel@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] counter: interrupt-cnt: Protect enable/disable OPs with mutex
Date: Sat, 3 May 2025 08:49:40 +0900 [thread overview]
Message-ID: <174622974059.536802.1308149045945940669.b4-ty@kernel.org> (raw)
In-Reply-To: <20250331163642.2382651-1-alexander.sverdlin@siemens.com>
On Mon, 31 Mar 2025 18:36:40 +0200, A. Sverdlin wrote:
> Enable/disable seems to be racy on SMP, consider the following scenario:
>
> CPU0 CPU1
>
> interrupt_cnt_enable_write(true)
> {
> if (priv->enabled == enable)
> return 0;
>
> [...]
Applied, thanks!
[1/1] counter: interrupt-cnt: Protect enable/disable OPs with mutex
commit: 7351312632e831e51383f48957d47712fae791ef
Best regards,
--
William Breathitt Gray <wbg@kernel.org>
prev parent reply other threads:[~2025-05-02 23:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-31 16:36 [PATCH] counter: interrupt-cnt: Protect enable/disable OPs with mutex A. Sverdlin
2025-04-01 4:50 ` Ahmad Fatoum
2025-04-01 8:38 ` Sverdlin, Alexander
2025-04-01 8:42 ` Ahmad Fatoum
2025-05-02 9:24 ` Sverdlin, Alexander
2025-05-02 11:43 ` William Breathitt Gray
2025-05-02 11:50 ` Oleksij Rempel
2025-05-02 12:06 ` William Breathitt Gray
2025-05-02 16:32 ` Sverdlin, Alexander
2025-05-02 23:47 ` William Breathitt Gray
2025-05-02 23:49 ` William Breathitt Gray [this message]
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=174622974059.536802.1308149045945940669.b4-ty@kernel.org \
--to=wbg@kernel.org \
--cc=alexander.sverdlin@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox