workqueue: use schedule_timeout_interruptible() instead of open code
PATCH 1/1 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 <[email protected]>
--- kernel/workqueue.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/workqueue.c +1 -2
@@ -1917,8 +1917,7 @@ restart:if (!need_to_create_worker (pool))break ; -__set_current_state (TASK_INTERRUPTIBLE ); -schedule_timeout (CREATE_COOLDOWN ); +schedule_timeout_interruptible (CREATE_COOLDOWN );if (!need_to_create_worker (pool))break ;
Signature · 1 line
1.7.4.4
Quoted 4 lines · Lai Jiangshan
schedule_timeout_interruptible(CREATE_COOLDOWN)is exactly the same as the original code.Signed-off-by Lai Jiangshan <[email protected]>
Applied to wq/for-3.17.
Thanks.
Signature · 1 line
tejun