cvs commit: src/sys/i386/i386 vm_machdep.c

Alan Cox alc at cs.rice.edu
Sun Mar 7 16:52:43 PST 2004


On Sun, Mar 07, 2004 at 04:27:33PM -0800, Peter Wemm wrote:
> peter       2004/03/07 16:27:33 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/i386/i386        vm_machdep.c 
>   Log:
>   Other parts of the tree do not protect calls to kmem_free() with Giant,
>   so remove it from here.  The most notable examples include vm_mmap().
>   This removes one more Giant event from exit(2).
>   
>   Revision  Changes    Path
>   1.226     +0 -2      src/sys/i386/i386/vm_machdep.c

Whether this is safe depends on whether the underlying pages need to
be unwired.  An explanation can be found in uma_large_free().
Unwiring dips into the pmap, acquiring Giant before doing so.  The
consequences would be a LOR, but not a race.

Alan



More information about the cvs-src mailing list