* __GFP_HIGH ignored?
@ 2001-09-02 18:06 Daniel Phillips
2001-09-07 16:52 ` Linus Torvalds
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Phillips @ 2001-09-02 18:06 UTC (permalink / raw)
To: Linus Torvalds, linux-kernel
__GFP_HIGH is apparently ignored now. Its intended function is performed
instead by PF_MEMALLOC. Should we take it out?
--
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: __GFP_HIGH ignored?
2001-09-02 18:06 __GFP_HIGH ignored? Daniel Phillips
@ 2001-09-07 16:52 ` Linus Torvalds
0 siblings, 0 replies; 2+ messages in thread
From: Linus Torvalds @ 2001-09-07 16:52 UTC (permalink / raw)
To: Daniel Phillips; +Cc: linux-kernel
On Sun, 2 Sep 2001, Daniel Phillips wrote:
>
> __GFP_HIGH is apparently ignored now. Its intended function is performed
> instead by PF_MEMALLOC. Should we take it out?
No. We may have a use for it in the future, especially as PF_MEMALLOC
really means something completely different.
I stronly suspect that the current PF_MEMALLOC handling is much too
strict: instead of trating a PF_MEMALLOC as a atomic high-priority thing,
we could treat it as something like
/*
* recursive call? Make sure to strip out anything
* that could cause deadlocks and further recursion..
*/
if (current->flags & PF_MEMALLOC) {
gfp_mask &= ~(__GFP_HIGHIO | __GFP_FS);
page_launder(gfp_mask);
page = RMQUEUE(..)
if (page)
return page;
goto repeat;
}
(Yeah, not exactly like the above, but you get the idea - allow a very
limited form of recursion, and allow a PF_MEMALLOC to always use the
reserves - together they should make us better at handling the current
issues with bounce buffers, for example).
It may be that we'll never need __GFP_HIGH, but let's keep it - it does
have semantics that make some amount of sense.
Linus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-09-07 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-02 18:06 __GFP_HIGH ignored? Daniel Phillips
2001-09-07 16:52 ` Linus Torvalds
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).