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)
commitd69afc90b8d47e471d2870f090f662e569b08407
tree7c79d103af656d7912358e09f9350ead1bf7e727
parentca0c42732c512a12fabe677594840f31861dd31a
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