]> 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)
commit2751fba075d3ed080e0d239a4c863ac8395e311c
tree3e346d9754e58bc805740d91009ef1d0de4b06a3
parent82cee42daabda2d86ba1eb90dbdfdf1fcb6a6792
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