lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 14 Nov 2006 12:33:01 -0800 (PST)
From:	Christoph Lameter <>
Cc:	Peter Williams <>,,
	Nick Piggin <>,
	Christoph Lameter <>,
	"Siddha, Suresh B" <>,
	"Chen, Kenneth W" <>,
	Ingo Molnar <>,
	KAMEZAWA Hiroyuki <>
Subject: [PATCH 1/8] Avoid taking rq lock in wake_priority_sleeper

Avoid taking the rq lock in wake_priority sleeper

Avoid taking the request queue lock in wake_priority_sleeper if
there are no running processes.

Signed-off-by: Christoph Lameter <>

Index: linux-2.6.19-rc5-mm1/kernel/sched.c
--- linux-2.6.19-rc5-mm1.orig/kernel/sched.c	2006-11-13 14:23:24.244457947 -0600
+++ linux-2.6.19-rc5-mm1/kernel/sched.c	2006-11-13 14:23:29.984173185 -0600
@@ -2918,6 +2918,9 @@ static inline int wake_priority_sleeper(
 	int ret = 0;
+	if (!rq->nr_running)
+		return 0;
 	 * If an SMT sibling task has been put to sleep for priority
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists