From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: linux1394-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firewire: core: use release/acquire pair when replacing underlying driver on card removal
Date: Sun, 18 Oct 2026 09:39:35 +0900 [thread overview]
Message-ID: <20261018003935.GA278783@sakamocchi.jp> (raw)
In-Reply-To: <20261017081720.186688-1-o-takashi@sakamocchi.jp>
On Sat, Oct 17, 2026 at 05:17:20PM +0900, Takashi Sakamoto wrote:
> When removing a card instance, the underlying driver is replaced to handle
> closing operations. Without proper memory reordering, other CPUs may
> observe the driver before it is fully initialized.
>
> Use a release/acquire pair to ensure that the driver's initialization is
> visible before the driver is accessed for close operations.
>
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> ---
> drivers/firewire/core-card.c | 16 ++++++++-------
> drivers/firewire/core-cdev.c | 2 +-
> drivers/firewire/core-device.c | 8 ++++----
> drivers/firewire/core-iso.c | 32 +++++++++++++++++++++--------
> drivers/firewire/core-transaction.c | 20 +++++++++---------
> 5 files changed, 47 insertions(+), 31 deletions(-)
Applied to for-next branch.
Regards
Takashi Sakamoto
prev parent reply other threads:[~2026-10-18 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 8:17 Takashi Sakamoto
2026-10-18 0:39 ` Takashi Sakamoto [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=20261018003935.GA278783@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
/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
all inboxes | Powered by JetHome®