Re: [PATCH] firewire: core: use release/acquire pair when replacing underlying driver on card removal

From: Takashi Sakamoto

Date: Sat Oct 17 2026 - 20:39:45 EST


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@xxxxxxxxxxxxx>
> ---
> 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