]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: convert config_lock from spinlock to mutex
authorYing Xue <ying.xue@windriver.com>
Mon, 17 Jun 2013 14:54:45 +0000 (10:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2013 22:53:01 +0000 (15:53 -0700)
commit28e80a48452a660b6f20dab9a87060386a72cce6
tree3e346d9754e58bc805740d91009ef1d0de4b06a3
parent7792d00b47057a839d62ba6122c16bd8defd8e8f
tipc: convert config_lock from spinlock to mutex

As the configuration server is now running under process context,
it's unnecessary for us to have a spinlock serializing the TIPC
configuration process. Instead, we replace it with a mutex lock,
which gives us more freedom. For instance, we can now call
pre-emptable functions within the protected area.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/config.c