* Lock the page
@ 2001-07-27 2:55 hochakhung
2001-07-27 12:56 ` Daniel Phillips
0 siblings, 1 reply; 2+ messages in thread
From: hochakhung @ 2001-07-27 2:55 UTC (permalink / raw)
To: linux-kernel
After getting a page from alloc_pages(mask, order), is it necessary to lock the page to prevent it from being swapped out? Can I assume that I already have exclusive access to the page? Can I assume that the page is free and no other kernel control paths would use it?
Any help would be greatly appreciated
Thanks
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Lock the page
2001-07-27 2:55 Lock the page hochakhung
@ 2001-07-27 12:56 ` Daniel Phillips
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Phillips @ 2001-07-27 12:56 UTC (permalink / raw)
To: hochakhung, linux-kernel
On Friday 27 July 2001 04:55, hochakhung@netscape.net wrote:
> After getting a page from alloc_pages(mask, order), is it necessary
> to lock the page to prevent it from being swapped out? Can I assume
> that I already have exclusive access to the page? Can I assume that
> the page is free and no other kernel control paths would use it?
You alloced it, it's yours. You haven't entered it into any managed
structure like the page cache, it's not on a lru list so it won't be
scanned by reclaim, and no page table entry points at it (except for
the kernel's own linear mapping if it's not a highuser page) so
virtual scanning won't find it either.
--
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-27 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-27 2:55 Lock the page hochakhung
2001-07-27 12:56 ` Daniel Phillips
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox