Thread (4 messages) 4 messages, 2 authors, 2008-01-31

Re: [PATCH net-2.6.25][NETNS]: Fix race between put_net() and netlink_kernel_create().

From: Pavel Emelyanov <hidden>
Date: 2008-01-31 11:05:53

David Miller wrote:
From: Pavel Emelyanov <redacted>
Date: Thu, 24 Jan 2008 16:15:13 +0300
quoted
The comment about "race free view of the set of network 
namespaces" was a bit hasty. Look (there even can be only 
one CPU, as discovered by Alexey Dobriyan and Denis Lunev):
 ...
quoted
Instead, I propose to crate the socket inside an init_net
namespace and then re-attach it to the desired one right
after the socket is created.

After doing this, we also have to be careful on error paths
not to drop the reference on the namespace, we didn't get
the one on.

Signed-off-by: Pavel Emelyanov <redacted>
Acked-by: Denis Lunev <redacted>
Applied, thanks.
Thanks, David.

I have one more patch pending in netdev@ and some more to be sent
(cleanups, small fixes and net namespaces). Do I have to wait till
net-2.6.26, or can I start (re-)sending them while 2.6.25 merge
window is open?

Thanks,
Pavel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help