Skip to contentSkip to conversation

sched: dont renice kernel threads

PATCH In review Con Kolivas 1 participant 1 message Mar 27, 2007 Workqueue

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 sched: dont renice kernel threads

The practice of renicing kernel threads to negative nice values is of questionable benefit at best, and at worst leads to larger latencies when kernel threads are busy on behalf of other tasks.

---

 kernel/workqueue.c |    2 --
 1 file changed, 2 deletions(-)
kernel/workqueue.c +0 -2
Index: linux-2.6.21-rc5-sd/kernel/workqueue.c
===================================================================
@@ -355,8 +355,6 @@ static int worker_thread(void *__cwq)
 	if (!cwq->freezeable)
 		current->flags |= PF_NOFREEZE;
 
-	set_user_nice(current, -5);
-
 	/* Block and flush all signals */
 	sigfillset(&blocked);
 	sigprocmask(SIG_BLOCK, &blocked, NULL);
Signature · 1 line
-ck