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

Commit e212f361 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Tejun Heo
Browse files

workqueue: use schedule_timeout_interruptible() instead of open code



schedule_timeout_interruptible(CREATE_COOLDOWN) is exactly the same as
the original code.

Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent e6a9a771
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1917,8 +1917,7 @@ __acquires(&pool->lock)
		if (!need_to_create_worker(pool))
		if (!need_to_create_worker(pool))
			break;
			break;


		__set_current_state(TASK_INTERRUPTIBLE);
		schedule_timeout_interruptible(CREATE_COOLDOWN);
		schedule_timeout(CREATE_COOLDOWN);


		if (!need_to_create_worker(pool))
		if (!need_to_create_worker(pool))
			break;
			break;