diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-05 13:13:03 -0400 | 
| commit | 5e66dd6d66ffe758b39b6dcadf2330753ee1159b (patch) | |
| tree | a72cdcff4448e4af9425cc213ddf56ab23e697fe /net/netlink/af_netlink.c | |
| parent | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (diff) | |
| parent | ca78f6baca863afe2e6a244a0fe94b3a70211d46 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'net/netlink/af_netlink.c')
| -rw-r--r-- | net/netlink/af_netlink.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 70cee82a98bf..55c0adc8f115 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c @@ -156,7 +156,7 @@ static void netlink_sock_destruct(struct sock *sk)  static void netlink_table_grab(void)  { -	write_lock_bh(&nl_table_lock); +	write_lock_irq(&nl_table_lock);  	if (atomic_read(&nl_table_users)) {  		DECLARE_WAITQUEUE(wait, current); @@ -166,9 +166,9 @@ static void netlink_table_grab(void)  			set_current_state(TASK_UNINTERRUPTIBLE);  			if (atomic_read(&nl_table_users) == 0)  				break; -			write_unlock_bh(&nl_table_lock); +			write_unlock_irq(&nl_table_lock);  			schedule(); -			write_lock_bh(&nl_table_lock); +			write_lock_irq(&nl_table_lock);  		}  		__set_current_state(TASK_RUNNING); @@ -178,7 +178,7 @@ static void netlink_table_grab(void)  static __inline__ void netlink_table_ungrab(void)  { -	write_unlock_bh(&nl_table_lock); +	write_unlock_irq(&nl_table_lock);  	wake_up(&nl_table_wait);  } | 
