Re: [PATCH] USB: cdc-acm: refuse writes after disconnect

From: William A. Kennington III

Date: Fri Nov 20 2026 - 01:56:03 EST


On Thu, Nov 19, 2026 at 09:24:51AM +0100, Oliver Neukum wrote:
> Hi,
>
> thank you for the patch. It raises a question, though.
> It is not clear to me when you use READ_ONCE/WRITE_ONCE
> and when you touch the disconnected flag directly.

I added READ_ONCE() around the unlocked acm->disconnected and then just
added the WRITE_ONCE() for consistency. I guess the rest doesn't use it
so let me just remove both of these.

Thanks,
William