Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 375c6bba authored by Sven Wegener's avatar Sven Wegener
Browse files

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: default avatarSven Wegener <sven.wegener@stealer.net>
Acked-by: default avatarSimon Horman <horms@verge.net.au>
parent ba6fd850
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 */