tipc: convert name table read-write lock to RCU
authorYing Xue <ying.xue@windriver.com>
Tue, 2 Dec 2014 07:00:30 +0000 (15:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 01:39:57 +0000 (20:39 -0500)
commit97ede29e80eead50d8bd533cf163401b88c027be
treec85f9f4af8b3e830847be0de35048bbd92218147
parent834caafa3e61f63805738376fa9c02dc0c1eb224
tipc: convert name table read-write lock to RCU

Convert tipc name table read-write lock to RCU. After this change,
a new spin lock is used to protect name table on write side while
RCU is applied on read side.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Tested-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rculist.h
net/tipc/name_distr.c
net/tipc/name_table.c
net/tipc/name_table.h