lists.openwall.net   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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 19 Mar 2012 20:59:59 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Andrea Arcangeli <aarcange@...hat.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Hillf Danton <dhillf@...il.com>
Subject: [PATCH 2/2] autonuma: fix typo in blind balance

Since it is certain that nid is not online in each round of for-loop,
it is replaced with given node id.

Signed-off-by: Hillf Danton <dhillf@...il.com>
---

--- a/kernel/sched/numa.c	Sat Mar 17 11:01:40 2012
+++ b/kernel/sched/numa.c	Mon Mar 19 20:04:00 2012
@@ -34,7 +34,7 @@ static int autonuma_balance_blind(struct
 		selected_nid = cpu_nid;

 		nr_mm_max = 0;
-		for_each_cpu_and(cpu, cpumask_of_node(nid), allowed) {
+		for_each_cpu_and(cpu, cpumask_of_node(cpu_nid), allowed) {
 			struct rq *rq = cpu_rq(cpu);
 			if (rq->curr->mm == mm)
 				nr_mm_max++;
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ