Thread (15 messages) 15 messages, 5 authors, 2013-02-06

Re: [PATCH v4] netpoll: protect napi_poll and poll_controller during dev_[open|close]

From: Neil Horman <nhorman@tuxdriver.com>
Date: 2013-02-04 00:33:10

On Sun, Feb 03, 2013 at 04:05:58PM -0500, David Miller wrote:
From: Neil Horman <nhorman@tuxdriver.com>
Date: Sat,  2 Feb 2013 13:51:16 -0500
quoted
I can't say Im a huge fan of returning -EBUSY in open/close, but I
like it better than busy waiting while the poll path completes.
Sorry Neil, this is a show stopper for me.

There is no reason why, just because of bad timing, a device open or
close that would normally succeed, should fail.  And this situation is
only being created because the mutual exclusion and context handling
is "hard", well that's too bad :-)
Alright, fair enough Dave.  I'll either covert this to a busy wait, or use a
mutex to do this.
Neil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help