Re: [PATCH] USB: cdc-acm: fix racy TIOCMIWAIT implementation

From: Oliver Neukum

Date: Mon Sep 07 2026 - 04:31:22 EST


On 07.09.26 08:55, Johan Hovold wrote:
The wakeup condition needs to be checked after adding the task to the
waitqueue and updating the task state to avoid missing a racing modem
status update or disconnect.

I am sorry, but in this case I have to ask:
Isn't TIOCMIWAIT inherently racy against the hardware?

Regards
Oliver