Skip to contentSkip to conversation

workqueue: use schedule_timeout_interruptible() instead of open code

PATCH Applied Lai Jiangshan 2 participants 2 messages Jun 3, 2014 – Jun 19, 2014 Workqueue

lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/workqueue.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/workqueue.c +1 -2
index a1c2c10..6b6e9f2 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 4 lines · Lai Jiangshan

schedule_timeout_interruptible(CREATE_COOLDOWN) is exactly the same as the original code.

Applied to wq/for-3.17.

Thanks.

Signature · 1 line
tejun