diff options
author | 2015-11-19 14:30:44 -0500 | |
---|---|---|
committer | 2015-11-20 14:06:10 -0500 | |
commit | 5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f (patch) | |
tree | 226f40f32f063d27a8d9a6abe6708d550721f1fd /net/tipc/netlink_compat.c | |
parent | tipc: introduce per-link spinlock (diff) | |
download | linux-5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f.tar.gz linux-5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f.tar.bz2 linux-5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f.zip |
tipc: convert node lock to rwlock
According to the node FSM a node in state SELF_UP_PEER_UP cannot
change state inside a lock context, except when a TUNNEL_PROTOCOL
(SYNCH or FAILOVER) packet arrives. However, the node's individual
links may still change state.
Since each link now is protected by its own spinlock, we finally have
the conditions in place to convert the node spinlock to an rwlock_t.
If the node state and arriving packet type are rigth, we can let the
link directly receive the packet under protection of its own spinlock
and the node lock in read mode. In all other cases we use the node
lock in write mode. This enables full concurrent execution between
parallel links during steady-state traffic situations, i.e., 99+ %
of the time.
This commit implements this change.
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/netlink_compat.c')
0 files changed, 0 insertions, 0 deletions