diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-06-03 15:32:17 +0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-19 12:25:51 -0400 |
commit | e212f361fb5a82b91f0ba2fc9690a47a57e414d1 (patch) | |
tree | 1ab942acce7ea5227a232557847617b10acf909a /kernel | |
parent | e6a9a7712331b9d2f551cad8630f6a6c6428c721 (diff) |
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')
-rw-r--r-- | kernel/workqueue.c | 3 |
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; |