mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
ipvs: Use schedule_timeout_interruptible() instead of msleep_interruptible()
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>
This commit is contained in:
parent
ba6fd85021
commit
375c6bbabf
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ static int sync_thread_master(void *data)
|
||||||
ip_vs_sync_buff_release(sb);
|
ip_vs_sync_buff_release(sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
msleep_interruptible(1000);
|
schedule_timeout_interruptible(HZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* clean up the sync_buff queue */
|
/* clean up the sync_buff queue */
|
||||||
|
|
Loading…
Reference in a new issue