Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103553
b: refs/heads/master
c: ba6fd85
h: refs/heads/master
i:
  103551: 70376bb
v: v3
  • Loading branch information
Sven Wegener committed Jul 16, 2008
1 parent ab3ff07 commit cb1cc19
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 998e7a76804b7a273a0460c2cdd5a51fa9856717
refs/heads/master: ba6fd85021dec97d58373d9aea4bea8fc24258be
7 changes: 5 additions & 2 deletions trunk/net/ipv4/ipvs/ip_vs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/udp.h>
#include <linux/err.h>
#include <linux/kthread.h>
#include <linux/wait.h>

#include <net/ip.h>
#include <net/sock.h>
Expand Down Expand Up @@ -772,6 +773,10 @@ static int sync_thread_backup(void *data)
ip_vs_backup_mcast_ifn, ip_vs_backup_syncid);

while (!kthread_should_stop()) {
wait_event_interruptible(*tinfo->sock->sk->sk_sleep,
!skb_queue_empty(&tinfo->sock->sk->sk_receive_queue)
|| kthread_should_stop());

/* do we have data now? */
while (!skb_queue_empty(&(tinfo->sock->sk->sk_receive_queue))) {
len = ip_vs_receive(tinfo->sock, tinfo->buf,
Expand All @@ -787,8 +792,6 @@ static int sync_thread_backup(void *data)
ip_vs_process_message(tinfo->buf, len);
local_bh_enable();
}

msleep_interruptible(1000);
}

/* release the sending multicast socket */
Expand Down

0 comments on commit cb1cc19

Please sign in to comment.