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: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
e6a9a77123
commit
e212f361fb
@ -1917,8 +1917,7 @@ restart:
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user