From owner-freebsd-current@FreeBSD.ORG Sat Oct 10 20:14:37 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0B451065672 for ; Sat, 10 Oct 2009 20:14:37 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 3888E8FC18 for ; Sat, 10 Oct 2009 20:14:36 +0000 (UTC) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id n9AKEZHw030952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 10 Oct 2009 22:14:35 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4AD0EB24.5020700@omnilan.de> Date: Sat, 10 Oct 2009 22:14:28 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.23 (X11/20090906) MIME-Version: 1.0 To: Kostik Belousov References: <4AD0BAFB.6020207@omnilan.de> <20091010175115.GC2259@deviant.kiev.zoral.com.ua> In-Reply-To: <20091010175115.GC2259@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4A06FE475FD7C249E7596AC5" Cc: freebsd-current@freebsd.org Subject: Re: shutdown not working with uart console X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2009 20:14:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4A06FE475FD7C249E7596AC5 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Kostik Belousov schrieb am 10.10.2009 19:51 (localtime): =2E.. > I wondering whether I was too conservative in r195509. > Please try this. >=20 > diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c > index 39b48e0..b96cdbf 100644 > --- a/sys/kern/kern_exit.c > +++ b/sys/kern/kern_exit.c > @@ -340,10 +340,10 @@ exit1(struct thread *td, int rv) > =20 > if (ttyvp !=3D NULL) { > sx_xunlock(&proctree_lock); > - vn_lock(ttyvp, LK_EXCLUSIVE | LK_RETRY); > - if (ttyvp->v_type !=3D VBAD) > + if (vn_lock(ttyvp, LK_EXCLUSIVE) =3D=3D 0) { > VOP_REVOKE(ttyvp, REVOKEALL); > - VOP_UNLOCK(ttyvp, 0); > + VOP_UNLOCK(ttyvp, 0); > + } > sx_xlock(&proctree_lock); > } > } Great, thanks a lot, this fixes my problem :) There's one LOR left at shutdown (vfs_mount+ffs_vfsops) and one at=20 startup (unionfs+ufs) but that's completele unrelated I guess. Thanks, -Harry --------------enig4A06FE475FD7C249E7596AC5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEARECAAYFAkrQ6ysACgkQLDqVQ9VXb8izfACfYoLVRR5VuZXhIK2bKfYfpSeh /toAn3BDNDKOEgu0D1PV5c5+RhwmgWHp =07/d -----END PGP SIGNATURE----- --------------enig4A06FE475FD7C249E7596AC5--