[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1278612561.1900.170.camel@laptop>
Date: Thu, 08 Jul 2010 20:09:21 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Gleb Natapov <gleb@...hat.com>
Cc: Marcelo Tosatti <mtosatti@...hat.com>, kvm@...r.kernel.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org, avi@...hat.com,
mingo@...e.hu, tglx@...utronix.de, hpa@...or.com, riel@...hat.com,
cl@...ux-foundation.org
Subject: Re: [PATCH v4 08/12] Inject asynchronous page fault into a guest
if page is swapped out.
On Thu, 2010-07-08 at 21:05 +0300, Gleb Natapov wrote:
> > > + /* do alloc atomic since if we are going to sleep anyway we
> > > + may as well sleep faulting in page */
> > > + work = kmem_cache_zalloc(async_pf_cache, GFP_ATOMIC);
> > > + if (!work)
> > > + return 0;
> >
> > GFP_KERNEL is fine for this context.
> But it can sleep, no? The comment explains why I don't want to sleep
> here.
In that case, use 0, no use wasting __GFP_HIGH on something that doesn't
actually need it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists