]> git.openfabrics.org - ~emulex/infiniband.git/commit
net: inet_add_protocol() can use cmpxchg()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 9 Sep 2010 04:31:35 +0000 (21:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Sep 2010 04:31:35 +0000 (21:31 -0700)
commite0386005ff2a729998735e10769d99e1acbc2dd1
treec04134571b728581d9692fb16dffcdd38d52dbda
parent92e32eaee288ee2e838fe76680cbaeaea25643c6
net: inet_add_protocol() can use cmpxchg()

Use cmpxchg() to get rid of spinlocks in inet_add_protocol() and
friends.

inet_protos[] & inet6_protos[] are moved to read_mostly section

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