Skip to contentSkip to conversation

sched, wait: Make the __wait_event*() interface more friendly

PATCH Peter Zijlstra 1 participant 1 message Sep 27, 2013 2 messages not in the archive netfilter

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Peter Zijlstra

+++ b/net/netfilter/ipvs/ip_vs_sync.c

(quoted diff) +0 -1
@@ -1637,12 +1637,9 @@ static int sync_thread_master(void *data
 			continue;
 		}
 		while (ip_vs_send_sync_msg(tinfo->sock, sb->mesg) < 0) {
-			int ret = 0;

Review static int sync_thread_master(void *data · line 1645

Quoted 10 lines
(quoted diff) +2 -4
-
-			__wait_event_interruptible(*sk_sleep(sk),
+			int ret = __wait_event_interruptible(*sk_sleep(sk),
 						   sock_writeable(sk) ||
-						   kthread_should_stop(),
-						   ret);
+						   kthread_should_stop());
 			if (unlikely(kthread_should_stop()))
 				goto done;
 		}

That site seems to be ignoring the interruptible state... seems wrong.

Pablo?