[NET] sem2mutex: net/
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d4ccd08cdf
commit
4a3e2f711a
@ -26,8 +26,8 @@
|
||||
#include <net/xfrm.h>
|
||||
#include <net/ip.h>
|
||||
|
||||
DECLARE_MUTEX(xfrm_cfg_sem);
|
||||
EXPORT_SYMBOL(xfrm_cfg_sem);
|
||||
DEFINE_MUTEX(xfrm_cfg_mutex);
|
||||
EXPORT_SYMBOL(xfrm_cfg_mutex);
|
||||
|
||||
static DEFINE_RWLOCK(xfrm_policy_lock);
|
||||
|
||||
|
@ -1486,9 +1486,9 @@ static void xfrm_netlink_rcv(struct sock *sk, int len)
|
||||
unsigned int qlen = 0;
|
||||
|
||||
do {
|
||||
down(&xfrm_cfg_sem);
|
||||
mutex_lock(&xfrm_cfg_mutex);
|
||||
netlink_run_queue(sk, &qlen, &xfrm_user_rcv_msg);
|
||||
up(&xfrm_cfg_sem);
|
||||
mutex_unlock(&xfrm_cfg_mutex);
|
||||
|
||||
} while (qlen);
|
||||
}
|
||||
|
Reference in New Issue
Block a user