All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netns: remove useless synchronize_net()
@ 2009-02-05 10:21 Nicolas Dichtel
  2009-02-06  7:45 ` David Miller
  0 siblings, 1 reply; 14+ messages in thread
From: Nicolas Dichtel @ 2009-02-05 10:21 UTC (permalink / raw)
  To: netdev

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

In dev_change_net_namespace(), synchronize_net() is called at the end of the 
function, but there is no reason (no deletion occurs).

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>

[-- Attachment #2: y.diff --]
[-- Type: text/x-patch, Size: 365 bytes --]

--- linux-2.6.28.2/net/core/dev.c	2009-01-24 19:42:07.000000000 -0500
+++ linux-2.6.28.2-new/net/core/dev.c	2009-02-05 04:16:35.000000000 -0500
@@ -4546,7 +4546,6 @@ int dev_change_net_namespace(struct net_
 	/* Notify protocols, that a new device appeared. */
 	call_netdevice_notifiers(NETDEV_REGISTER, dev);
 
-	synchronize_net();
 	err = 0;
 out:
 	return err;

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

end of thread, other threads:[~2009-02-16 13:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 10:21 [PATCH] netns: remove useless synchronize_net() Nicolas Dichtel
2009-02-06  7:45 ` David Miller
2009-02-06 13:50   ` Nicolas Dichtel
2009-02-06 22:10     ` David Miller
2009-02-10 15:40       ` Nicolas Dichtel
2009-02-10 16:40         ` Daniel Lezcano
2009-02-10 16:48           ` Nicolas Dichtel
2009-02-10 17:13             ` Daniel Lezcano
2009-02-11  7:51               ` Eric W. Biederman
2009-02-11 15:49                 ` Daniel Lezcano
2009-02-11 23:03                   ` Eric W. Biederman
2009-02-12 15:11                     ` Daniel Lezcano
     [not found]                       ` <49943C17.5080509-GANU6spQydw@public.gmane.org>
2009-02-15 16:13                         ` Daniel Lezcano
     [not found]                           ` <49983F0D.2090905-GANU6spQydw@public.gmane.org>
2009-02-16 13:46                             ` Nicolas Dichtel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.