Skip to content

Commit

Permalink
ipvs: Use schedule_timeout_interruptible() instead of msleep_interrup…
Browse files Browse the repository at this point in the history
…tible()

So that kthread_stop() can wake up the thread and we don't have to wait one
second in the worst case for the daemon to actually stop.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
  • Loading branch information
Sven Wegener committed Jul 16, 2008
1 parent ba6fd85 commit 375c6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ipvs/ip_vs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ static int sync_thread_master(void *data)
ip_vs_sync_buff_release(sb);
}

msleep_interruptible(1000);
schedule_timeout_interruptible(HZ);
}

/* clean up the sync_buff queue */
Expand Down

0 comments on commit 375c6bb

Please sign in to comment.