]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/oom-warning
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / oom-warning
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/oom-warning b/src/patches/suse-2.6.27.31/patches.fixes/oom-warning
new file mode 100644 (file)
index 0000000..4900e2b
--- /dev/null
@@ -0,0 +1,30 @@
+From: Andrea Arcangeli <andrea@suse.de>
+Subject: Tell the end user they should not worry about GFP_ATOMIC failures
+Patch-mainline: no
+References: SUSE48965
+
+x
+
+Signed-off-by: Andrea Arcangeli <andrea@suse.de>
+
+---
+ mm/page_alloc.c |    8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+--- a/mm/page_alloc.c
++++ b/mm/page_alloc.c
+@@ -1645,7 +1645,13 @@ nofail_alloc:
+ nopage:
+       if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit()) {
+-              printk(KERN_WARNING "%s: page allocation failure."
++              if (!wait) {
++                      printk(KERN_INFO "The following is only an harmless informational message.\n");
++                      printk(KERN_INFO "Unless you get a _continuous_flood_ of these messages it means\n");
++                      printk(KERN_INFO "everything is working fine. Allocations from irqs cannot be\n");
++                      printk(KERN_INFO "perfectly reliable and the kernel is designed to handle that.\n");
++              }
++              printk(KERN_INFO "%s: page allocation failure."
+                       " order:%d, mode:0x%x\n",
+                       p->comm, order, gfp_mask);
+               dump_stack();