Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2001 00:41:12 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        (Peter Wemm) <peter@netplex.com.au>, (Alfred Perlstein) <bright@wintelcom.net>, current@FreeBSD.org, arch@FreeBSD.org, rjesup@wgate.com, Soren Schmidt <sos@freebsd.dk>
Subject:   Re: HEADS-UP: await/asleep removal imminent
Message-ID:  <XFMail.010119004112.jhb@FreeBSD.org>
In-Reply-To: <81448.979893252@critter>

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

On 19-Jan-01 Poul-Henning Kamp wrote:
> In message <XFMail.010119002934.jhb@FreeBSD.org>, John Baldwin writes:
>>
>>This is _not_ true.  My quad xeon test box runs a pure source tree, and has
>>not
>>had a single problem building many worlds and releases since the fix to
>>atomic_store_rel_ptr(). 
> 
> How many disks are active when you build world on that box ?

Just one.  I don't have any boxes actually with lots of disks in them. 
Details like this would be helpful though.  I'll see if I can't find someone to
rummage together a vinum stripe to build on or some such.  However, after
thinking some more, even in a preemptive kernel, Giant will protect against the
*strategy() race you brought up, because we won't get a context switch in
kernel mode that releases Giant until either we exit the kernel or we call
tsleep().  The interrupt handler will block on Giant when its thread runs, so
it won't run until the top half finishes and returns.  Does that make sense?

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010119004112.jhb>