From: William Lee Irwin III <wli@holomorphy.com>
To: linux-mm@kvack.org
Subject: [2/13] honor __GFP_NOKILL
Date: Wed, 25 Sep 2002 22:42:26 -0700 [thread overview]
Message-ID: <20020926054226.GI22942@holomorphy.com> (raw)
In order to honor __GFP_NOKILL, the OOM killer should not be invoked
when the __GFP_NOKILL flag is set. try_to_free_pages() is the sole
caller of out_of_memory().
diff -urN linux-2.5.33/mm/vmscan.c linux-2.5.33-mm5/mm/vmscan.c
--- linux-2.5.33/mm/vmscan.c 2002-09-04 04:02:00.000000000 -0700
+++ linux-2.5.33-mm5/mm/vmscan.c 2002-09-08 19:57:30.000000000 -0700
@@ -688,7 +688,7 @@
blk_congestion_wait(WRITE, HZ/4);
shrink_slab(total_scanned, gfp_mask);
}
- if (gfp_mask & __GFP_FS)
+ if ((gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NOKILL))
out_of_memory();
return 0;
}
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
reply other threads:[~2002-09-26 5:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020926054226.GI22942@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox