Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40028
b: refs/heads/master
c: cfb0c08
h: refs/heads/master
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Oct 19, 2006
1 parent bce54d6 commit 02ace4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: e91ed0bcdfc4812c0342d64281ee985213df07c3
refs/heads/master: cfb0c0890b200364c0886c0d9f0dc615f8114c43
6 changes: 4 additions & 2 deletions trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,8 @@ static u32 dispatch(struct tipc_port *tport, struct sk_buff *buf)
atomic_inc(&tipc_queue_size);
skb_queue_tail(&sock->sk->sk_receive_queue, buf);

wake_up_interruptible(sock->sk->sk_sleep);
if (waitqueue_active(sock->sk->sk_sleep))
wake_up_interruptible(sock->sk->sk_sleep);
return TIPC_OK;
}

Expand All @@ -1223,7 +1224,8 @@ static void wakeupdispatch(struct tipc_port *tport)
{
struct tipc_sock *tsock = (struct tipc_sock *)tport->usr_handle;

wake_up_interruptible(tsock->sk.sk_sleep);
if (waitqueue_active(tsock->sk.sk_sleep))
wake_up_interruptible(tsock->sk.sk_sleep);
}

/**
Expand Down

0 comments on commit 02ace4c

Please sign in to comment.