]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.13-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jan 2014 16:15:35 +0000 (17:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jan 2014 16:15:35 +0000 (17:15 +0100)
added patches:
mm-mempolicy.c-fix-mempolicy-printing-in-numa_maps.patch

queue-3.13/mm-mempolicy.c-fix-mempolicy-printing-in-numa_maps.patch [new file with mode: 0644]
queue-3.13/series

diff --git a/queue-3.13/mm-mempolicy.c-fix-mempolicy-printing-in-numa_maps.patch b/queue-3.13/mm-mempolicy.c-fix-mempolicy-printing-in-numa_maps.patch
new file mode 100644 (file)
index 0000000..62e7084
--- /dev/null
@@ -0,0 +1,43 @@
+From 8790c71a18e5d2d93532ae250bcf5eddbba729cd Mon Sep 17 00:00:00 2001
+From: David Rientjes <rientjes@google.com>
+Date: Thu, 30 Jan 2014 15:46:08 -0800
+Subject: mm/mempolicy.c: fix mempolicy printing in numa_maps
+
+From: David Rientjes <rientjes@google.com>
+
+commit 8790c71a18e5d2d93532ae250bcf5eddbba729cd upstream.
+
+As a result of commit 5606e3877ad8 ("mm: numa: Migrate on reference
+policy"), /proc/<pid>/numa_maps prints the mempolicy for any <pid> as
+"prefer:N" for the local node, N, of the process reading the file.
+
+This should only be printed when the mempolicy of <pid> is
+MPOL_PREFERRED for node N.
+
+If the process is actually only using the default mempolicy for local
+node allocation, make sure "default" is printed as expected.
+
+Signed-off-by: David Rientjes <rientjes@google.com>
+Reported-by: Robert Lippert <rlippert@google.com>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Acked-by: Mel Gorman <mgorman@suse.de>
+Cc: Ingo Molnar <mingo@kernel.org>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ mm/mempolicy.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/mm/mempolicy.c
++++ b/mm/mempolicy.c
+@@ -2928,7 +2928,7 @@ void mpol_to_str(char *buffer, int maxle
+       unsigned short mode = MPOL_DEFAULT;
+       unsigned short flags = 0;
+-      if (pol && pol != &default_policy) {
++      if (pol && pol != &default_policy && !(pol->flags & MPOL_F_MORON)) {
+               mode = pol->mode;
+               flags = pol->flags;
+       }
index ac3950212b694f8fcbb7c8f37b02f56bf970d7ff..f90731aa48eac2e9f83186f2595056ede576807e 100644 (file)
@@ -1 +1,2 @@
 e752x_edac-fix-pci_dev-usage-count.patch
+mm-mempolicy.c-fix-mempolicy-printing-in-numa_maps.patch