snap: remove one synchronize_net()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 22 May 2011 22:41:48 +0000 (22:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 20:29:24 +0000 (16:29 -0400)
No need to wait for a rcu grace period after list insertion.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/802/psnap.c

index 21cde8fd5795310a823367783cc3f4cd9eb92d0c..db6baf7cf6e97779bdf5405aa55cfe282107a5fe 100644 (file)
@@ -147,7 +147,6 @@ struct datalink_proto *register_snap_client(const unsigned char *desc,
 out:
        spin_unlock_bh(&snap_lock);
 
-       synchronize_net();
        return proto;
 }