From owner-svn-src-stable-8@FreeBSD.ORG Wed May 25 11:47:59 2011 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEF0D10656D3; Wed, 25 May 2011 11:47:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 30F9D8FC20; Wed, 25 May 2011 11:47:57 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p4PBlrTY092935 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 May 2011 14:47:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p4PBlrLP012432; Wed, 25 May 2011 14:47:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p4PBlrGW012431; Wed, 25 May 2011 14:47:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 25 May 2011 14:47:53 +0300 From: Kostik Belousov To: Oliver Pinter Message-ID: <20110525114753.GY48734@deviant.kiev.zoral.com.ua> References: <201105250325.p4P3PEvI097170@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CJhilzLIyAgaRUK6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r222274 - stable/8/sys/kern X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2011 11:48:00 -0000 --CJhilzLIyAgaRUK6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2011 at 12:11:29PM +0200, Oliver Pinter wrote: > MFC to 7-STABLE? Somebody need to test it for 7 (I do not expect any failures, but I also prefer to not commit untested changes). The testing should include destroying some devfs nodes, e.g. by loading and unloading a driver that creates and destroys them. >=20 > On 5/25/11, Konstantin Belousov wrote: > > Author: kib > > Date: Wed May 25 03:25:14 2011 > > New Revision: 222274 > > URL: http://svn.freebsd.org/changeset/base/222274 > > > > Log: > > MFC r222086: > > The protection against the race with dev_rel(), introduced in r163328, > > should be extended to cover destroy_devl() calls for the children of = the > > destroyed dev. > > > > Modified: > > stable/8/sys/kern/kern_conf.c > > Directory Properties: > > stable/8/sys/ (props changed) > > stable/8/sys/amd64/include/xen/ (props changed) > > stable/8/sys/cddl/contrib/opensolaris/ (props changed) > > stable/8/sys/contrib/dev/acpica/ (props changed) > > stable/8/sys/contrib/pf/ (props changed) > > > > Modified: stable/8/sys/kern/kern_conf.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > --- stable/8/sys/kern/kern_conf.c Wed May 25 01:04:12 2011 (r222273) > > +++ stable/8/sys/kern/kern_conf.c Wed May 25 03:25:14 2011 (r222274) > > @@ -885,6 +885,8 @@ destroy_devl(struct cdev *dev) > > /* Remove name marking */ > > dev->si_flags &=3D ~SI_NAMED; > > > > + dev->si_refcount++; /* Avoid race with dev_rel() */ > > + > > /* If we are a child, remove us from the parents list */ > > if (dev->si_flags & SI_CHILD) { > > LIST_REMOVE(dev, si_siblings); > > @@ -901,7 +903,6 @@ destroy_devl(struct cdev *dev) > > dev->si_flags &=3D ~SI_CLONELIST; > > } > > > > - dev->si_refcount++; /* Avoid race with dev_rel() */ > > csw =3D dev->si_devsw; > > dev->si_devsw =3D NULL; /* already NULL for SI_ALIAS */ > > while (csw !=3D NULL && csw->d_purge !=3D NULL && dev->si_threadcount= ) { > > _______________________________________________ > > svn-src-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/svn-src-stable > > To unsubscribe, send any mail to "svn-src-stable-unsubscribe@freebsd.or= g" > > --CJhilzLIyAgaRUK6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3c7GkACgkQC3+MBN1Mb4gDxwCeK/R6qSfnG9tedZr+Iw+jKY+N sn4AoLPok6OmOzCMZokuUCg3wp9cHv5t =qMp9 -----END PGP SIGNATURE----- --CJhilzLIyAgaRUK6--