Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2004 10:34:31 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        David Schultz <das@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_fork.c
Message-ID:  <200410041034.32221.jhb@FreeBSD.org>
In-Reply-To: <200410010501.i9151US7086474@repoman.freebsd.org>
References:  <200410010501.i9151US7086474@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 01 October 2004 01:01 am, David Schultz wrote:
> das         2004-10-01 05:01:29 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             kern_fork.c
>   Log:
>   Avoid calling _PHOLD(p1) with p2's lock held, since _PHOLD()
>   may block to swap in p1.  Instead, call _PHOLD earlier, at a
>   point where the only lock held happens to be p1's.

FWIW, I don't think this can actually happen because curthread belonging to p1 
is executing and it wouldn't be executing unless it was swapped in, so I 
don't think that PHOLD could ever have blocked.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



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