diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-11-19 14:30:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-20 14:06:10 -0500 |
commit | 5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f (patch) | |
tree | 226f40f32f063d27a8d9a6abe6708d550721f1fd /net/tipc/bcast.h | |
parent | 2312bf61ae365fdd6b9bfb24558a417859759447 (diff) | |
download | blackbird-obmc-linux-5405ff6e15f40f2f53e37d2dcd7de521e2b7a96f.tar.gz blackbird-obmc-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/bcast.h')
0 files changed, 0 insertions, 0 deletions