summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-06-03 15:32:17 +0800
committerTejun Heo <tj@kernel.org>2014-06-19 12:25:51 -0400
commite212f361fb5a82b91f0ba2fc9690a47a57e414d1 (patch)
tree1ab942acce7ea5227a232557847617b10acf909a /kernel/workqueue.c
parente6a9a7712331b9d2f551cad8630f6a6c6428c721 (diff)
downloadlinux-e212f361fb5a82b91f0ba2fc9690a47a57e414d1.tar.bz2
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>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 170b724b2d69..fcdf0430595a 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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;