malloc.9 locking section

Alan Cox alc at cs.rice.edu
Tue Apr 8 13:03:00 PDT 2003


On Tue, Apr 08, 2003 at 03:31:40PM -0400, John Baldwin wrote:
> 
> On 17-Mar-2003 Harti Brandt wrote:
> > Index: malloc.9
> > ===================================================================
> > RCS file: /home/ncvs/src/share/man/man9/malloc.9,v
> > retrieving revision 1.30
> > diff -u -r1.30 malloc.9
> > --- malloc.9  24 Feb 2003 05:53:27 -0000      1.30
> > +++ malloc.9  17 Mar 2003 15:06:14 -0000
> >
> > [snip]
> 
> Looks good to me.  While you are at it, please kill the following
> from the manpage (if you aren't already doing so):
> 
>      Any calls to malloc() or free() when holding a vnode(9) interlock, will
>      cause a LOR (Lock Order Reversal) due to the interwining of VM Objects
>      and Vnodes.
> 

Why?  The above statement is true.

Alan


More information about the freebsd-smp mailing list