linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* refill_inactive()
@ 2000-09-24  9:57 Ingo Molnar
  2000-09-24 10:15 ` refill_inactive() Arjan van de Ven
  2000-09-25 14:06 ` refill_inactive() Rik van Riel
  0 siblings, 2 replies; 9+ messages in thread
From: Ingo Molnar @ 2000-09-24  9:57 UTC (permalink / raw)
  To: Rik van Riel, Roger Larsson; +Cc: Linus Torvalds, MM mailing list, linux-kernel

i'm wondering about the following piece of code in refill_inactive():

                if (current->need_resched && (gfp_mask & __GFP_IO)) {
                        __set_current_state(TASK_RUNNING);
                        schedule();
                }

shouldnt this be __GFP_WAIT? It's true that __GFP_IO implies __GFP_WAIT
(because IO cannot be done without potentially scheduling), so the code is
not buggy, but the above 'yielding' of the CPU should be done in the
GFP_BUFFER case as well. (which is __GFP_WAIT but not __GFP_IO)

Objections?

	Ingo

--
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.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-09-25 17:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-24  9:57 refill_inactive() Ingo Molnar
2000-09-24 10:15 ` refill_inactive() Arjan van de Ven
2000-09-24 10:56   ` refill_inactive() Ingo Molnar
2000-09-25 14:06 ` refill_inactive() Rik van Riel
2000-09-25 14:35   ` refill_inactive() Ingo Molnar
2000-09-25 16:08     ` refill_inactive() Rik van Riel
2000-09-25 16:17       ` refill_inactive() Linus Torvalds
2000-09-25 16:33         ` refill_inactive() Rik van Riel
2000-09-25 17:45         ` refill_inactive() Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox