Re: [PATCH net] ptp: vmclock: keep the device state until the last file is closed

From: Paolo Abeni

Date: Thu Nov 12 2026 - 10:19:23 EST


On 11/7/26 16:03, Chad Aldreda wrote:
@@ -649,9 +680,20 @@ static void vmclock_remove(void *data)
if (st->miscdev.minor != MISC_DYNAMIC_MINOR)
misc_deregister(&st->miscdev);
+ /* Files still open now fail, and a poll() in progress returns */
+ WRITE_ONCE(st->removed, true);
+ wake_up_interruptible(&st->disrupt_wait);

I think that sashiko comment about using wake_up_interruptible_all()
is relevant:

https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261107150344.3946529-2-ca@xxxxxxxxxxxxxx

/P