Netdev List
 help / color / mirror / Atom feed
* [RFT 0/2] net: usb: rtl8150: cleaning up races with ceasing IO
@ 2026-11-25 14:43 Oliver Neukum
  2026-11-25 14:43 ` [RFT 1/3] net: usb: rtl8150: break cycle between tasklet and URB Oliver Neukum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Oliver Neukum @ 2026-11-25 14:43 UTC (permalink / raw)
  To: petkan, netdev

The driver has the fundamental issue that it uses a tasklet that
reschedules itself and resubmits an URB, which in case of an error
can schedule the tasklet and so on.
This cycle cannot be broken by adding primitives for cancelling
tasklets and URBs but it also takes a flag preventing rescheduling
or resubmission of tasklet and URB.

It turns out that this is quite complex because the issue hits in
close(), suspend() and disconnect(). The required changes became
so complex that I decided that this needs to be broken up in series
of patches and needs testing.

V3: Added patches for close() and suspend() which Sashiko noted
to be absent
V2: V2: Sashiko pointed out errors which conceptually arose from handling
close() and disconnect() in the same way. Treating disconnect()
separatly makes them go away


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-25 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 14:43 [RFT 0/2] net: usb: rtl8150: cleaning up races with ceasing IO Oliver Neukum
2026-11-25 14:43 ` [RFT 1/3] net: usb: rtl8150: break cycle between tasklet and URB Oliver Neukum
2026-11-25 14:43 ` [RFT 2/3] net: usb: rtl8150: fix race in open() error handling Oliver Neukum
2026-11-25 14:43 ` [RFT 3/3] net: usb: rtl8150: cease all IO upon close Oliver Neukum
2026-11-25 14:59 ` [RFT 0/2] net: usb: rtl8150: cleaning up races with ceasing IO netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox