Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31749
b: refs/heads/master
c: 6abd219
h: refs/heads/master
i:
  31747: 892ac94
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Jul 3, 2006
1 parent 95d2930 commit b3586d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b02454f43578b24bc8b8ab54a239156841f56f6d
refs/heads/master: 6abd219c6eab92172038e4719e02905acb7b68d4
8 changes: 4 additions & 4 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit b3586d9

Please sign in to comment.