Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Nov 2002 18:24:42 -0800 (PST)
From:      Matthew Jacob <mjacob@feral.com>
To:        "Alan L. Cox" <alc@imimic.com>
Cc:        Jake Burkholder <jake@locore.ca>, jeff@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/vm uma_dbg.c
Message-ID:  <Pine.BSF.4.21.0211101820030.62965-100000@beppo>
In-Reply-To: <Pine.BSF.4.21.0211101810230.62965-100000@beppo>

next in thread | previous in thread | raw e-mail | index | archive | help


> > 
> > Matt, can you try acquiring and releasing the zone mutex in
> > uma_dbg_alloc() and uma_dbg_free() instead?
> > 
> 
> Sure- let me look at this a little closer - I'll interrupt the make
> release and try a different approach.

The trouble is that slab_zalloc sets value in us_freelist with the zone
lock not held.

THe locking for falling uma_dbg_alloc and uma_dbg_free doesn't seem all
that consistent to me.

It's getting beyond my easy reading/fixing. If there is no MI atomic
set/clear 8 (which, IMO, is kind of a bug), I'd just change us_freelist
to be an int for now. This change seemed to make a difference- but it
could be coincidence.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211101820030.62965-100000>