From owner-cvs-all@FreeBSD.ORG Thu Oct 25 04:44:29 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06C4F16A498; Thu, 25 Oct 2007 04:44:29 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id D878E13C480; Thu, 25 Oct 2007 04:44:28 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 7B54F1A4D7C; Wed, 24 Oct 2007 21:44:28 -0700 (PDT) Date: Wed, 24 Oct 2007 21:44:28 -0700 From: Alfred Perlstein To: David Xu Message-ID: <20071025044428.GS33488@elvis.mu.org> References: <200710231754.l9NHsGLH090312@repoman.freebsd.org> <471FF2BE.9000204@freebsd.org> <20071025022607.GQ33488@elvis.mu.org> <47200064.9050403@freebsd.org> <20071025023418.GR33488@elvis.mu.org> <47200242.4050403@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47200242.4050403@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Julian Elischer , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_fork.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 04:44:29 -0000 * David Xu [071024 19:40] wrote: > Alfred Perlstein wrote: > > >>thread_suspend_check() with SINGLE_BOUNDARY is used is only called > >>in userret() where I don't think any code is still using the p_fd. > > > > > >This is not an acceptable solution as it will deadlock unless all > >threads exit the kernel. > > > > Where is deadlock ? thread_single(SINGLE_BOUNDARY) does not suspend > sleeping thread, it will interrupt it. If it does, it will give awful semantics, it's better to just disallow this action with threads until the code is fixed. -- - Alfred Perlstein