Thread (22 messages) 22 messages, 8 authors, 6d ago

Re: [PATCH net v6] usbnet: fix smp_processor_id() use in preemptible context

flat view

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2026-10-13 09:20:46
Also in: linux-usb, lkml

On 2026-10-13 10:54:09 [+0200], Oliver Neukum wrote:
On 12.10.26 22:26, Alan Stern wrote:
quoted
Today you fix VHCI, tomorrow some other virtual HCD will cause problems.

Should we document any requirements that all HCDs will have to follow
and that all completion handlers can rely on?
Numerous corner cases. For example I strongly suspect that unloading
the driver for the HC will always complete URBs synchronously.
Please do not do this.
Sorry, I have hard time to parse this. The expectation of the USB driver
(was) that the completion handler is invoked in interrupt context.
Therefore BH is disabled one way or another.
Are you saying we should not have this behaviour documented/ expected
and assume preemptible context because "rmmod hcd" will complete all
enqueued URBs in the rmmod context?
	Regards
		Oliver
Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help