]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: define new functions to operate bc_lock
authorYing Xue <ying.xue@windriver.com>
Mon, 5 May 2014 00:56:15 +0000 (08:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 21:26:44 +0000 (17:26 -0400)
commit1fd094486bea1a331673a623e4affba63d50853d
tree7c79d103af656d7912358e09f9350ead1bf7e727
parentc1a0fb1e5f536c3f329805994500b1ee18305eec
tipc: define new functions to operate bc_lock

As we are going to do more jobs when bc_lock is released, the two
operations of holding/releasing the lock should be encapsulated with
functions. In addition, we move bc_lock spin lock into tipc_bclink
structure avoiding to define the global variable.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bcast.c