diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2014-06-03 07:32:17 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-19 16:25:51 (GMT) |
commit | e212f361fb5a82b91f0ba2fc9690a47a57e414d1 (patch) | |
tree | 1ab942acce7ea5227a232557847617b10acf909a | |
parent | e6a9a7712331b9d2f551cad8630f6a6c6428c721 (diff) | |
download | linux-e212f361fb5a82b91f0ba2fc9690a47a57e414d1.tar.xz |
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>
-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 170b724..fcdf043 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; |