Subject: Re: uvm_pagefree() without uvm_lock_pageq() ?
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 11/30/2007 12:49:50
On Fri, Nov 30, 2007 at 12:28:05PM +0900, YAMAMOTO Takashi wrote:
> > Hi,
> > shouldn't uvm_pagefree() always be called with pageq locked ?
> > in x86/x86/pmap.c there are some calls to uvm_pagefree() without obvious
> > call to uvm_lock_pageq()/uvm_unlock_pageq() ...
> > 
> > -- 
> > Manuel Bouyer <bouyer@antioche.eu.org>
> >      NetBSD: 26 ans d'experience feront toujours la difference
> > --
> 
> why do you think it should be taken?
> i don't see any reason to take it for pages which can never be put
> on the page queue.

You're right; these are for PT pages

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 26 ans d'experience feront toujours la difference
--