From: Marcelo Tosatti <marcelo@conectiva.com.br>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] allow PF_MEMALLOC tasks to directly reclaim pages
Date: Fri, 27 Apr 2001 06:50:01 -0300 (BRT) [thread overview]
Message-ID: <Pine.LNX.4.21.0104270511160.2756-100000@freak.distro.conectiva> (raw)
Linus,
Currently __alloc_pages() does not allow PF_MEMALLOC tasks to free clean
inactive pages.
This is senseless --- if the allocation has __GFP_WAIT set, its ok to grab
the pagemap_lru_lock/pagecache_lock/etc.
I checked all possible codepaths after reclaim_page() and they are ok.
The following patch fixes that.
--- linux/mm/page_alloc.c.orig Fri Apr 27 05:59:35 2001
+++ linux/mm/page_alloc.c Fri Apr 27 05:59:48 2001
@@ -295,8 +295,7 @@
* Can we take pages directly from the inactive_clean
* list?
*/
- if (order == 0 && (gfp_mask & __GFP_WAIT) &&
- !(current->flags & PF_MEMALLOC))
+ if (order == 0 && (gfp_mask & __GFP_WAIT))
direct_reclaim = 1;
/*
next reply other threads:[~2001-04-27 11:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-27 9:50 Marcelo Tosatti [this message]
2001-04-27 18:28 ` [PATCH] allow PF_MEMALLOC tasks to directly reclaim pages Mark Hemment
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=Pine.LNX.4.21.0104270511160.2756-100000@freak.distro.conectiva \
--to=marcelo@conectiva.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).