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>] [day] [month] [year] [list]
Message-ID: <CAJd=RBC0WiAAOYpZ+wdR1wBLosKNPJWzYd6P+S6hjYYx8k652w@mail.gmail.com>
Date:	Sat, 17 Nov 2012 13:17:13 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	Mel Gorman <mgorman@...e.de>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Hillf Danton <dhillf@...il.com>
Subject: [PATCH 3/5] balancenuma: cleanup in resetting numa scan

Checking ->mm is not needed, but too late if necessary.

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

--- a/kernel/sched/fair.c	Sat Nov 17 12:12:08 2012
+++ b/kernel/sched/fair.c	Sat Nov 17 12:14:26 2012
@@ -1125,7 +1125,7 @@ static void reset_ptenuma_scan(struct ta
 	ACCESS_ONCE(p->mm->numa_scan_seq)++;
 	p->mm->numa_scan_offset = 0;
 	
-	if (p->mm && p->mm->mm_balancenuma)
+	if (p->mm->mm_balancenuma)
 		p->mm->mm_balancenuma->mm_numa_fault_tot >>= 1;
 	if (p->task_balancenuma) {
 		int nid;
--
--
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