[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refill_inactive()



In article <Pine.LNX.4.21.0009241148100.2789-100000@elte.hu> you wrote:
> 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

Is this also true for starting IO ?

Greetings,
   Arjan van de Ven
--
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/