Thread (1 message) 1 message, 1 author, 2014-03-21

Re: usbnet: driver_info->stop required to stop USB interrupts?

From: Oliver Neukum <hidden>
Date: 2014-03-21 08:32:04

On Thu, 2014-03-20 at 16:53 -0700, Julius Werner wrote:
quoted
quoted
Can you please explain why we need to check if the waitqueue is active?
and add a comment that answers the above question.
Ooooohhhhh.... the braces!!! Well, that's just mean...
Yes, I was unsure about this, but so it is.
I expect that we don't really need the waitqueue_active() check there
as long as we fix the patch to make sure the control flow in the rest
of the statements actually stays the same. (That's why I really like
to put comments for an else block next to or under the opening brace,
instead of above with another empty line...)

We cannot. If the driver intends to shut down traffic then resubmission
in the bottom half must not happen. The check for the intention to shut
down is necessary.

	Regards
		Oliver



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help