From owner-svn-src-head@FreeBSD.ORG Thu May 21 16:28:30 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63B341065676; Thu, 21 May 2009 16:28:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id E1D338FC17; Thu, 21 May 2009 16:28:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1M7B88-000J2S-IZ; Thu, 21 May 2009 19:28:28 +0300 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 n4LGSPx5031447 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 May 2009 19:28:26 +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.3/8.14.3) with ESMTP id n4LGSPBf072490; Thu, 21 May 2009 19:28:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n4LGSPte072489; Thu, 21 May 2009 19:28:25 +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: Thu, 21 May 2009 19:28:25 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20090521162825.GS1927@deviant.kiev.zoral.com.ua> References: <3bbf2fe10905210629p46c7a204v6863aaba77354462@mail.gmail.com> <200905211211.00168.jhb@freebsd.org> <20090521161535.GQ1927@deviant.kiev.zoral.com.ua> <200905211223.55113.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MXXuyh5iveicsfl4" Content-Disposition: inline In-Reply-To: <200905211223.55113.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.1 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1M7B88-000J2S-IZ ba1d18c543dc086228f2eafc215fa5e5 X-Terabit: YES Cc: Scott Long , src-committers@freebsd.org, svn-src-all@freebsd.org, attilio@freebsd.org, rwatson@freebsd.org, svn-src-head@freebsd.org, "M. Warner Losh" Subject: Re: svn commit: r192535 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 16:28:31 -0000 --MXXuyh5iveicsfl4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 21, 2009 at 12:23:54PM -0400, John Baldwin wrote: > On Thursday 21 May 2009 12:15:35 pm Kostik Belousov wrote: > > On Thu, May 21, 2009 at 12:10:59PM -0400, John Baldwin wrote: > > Another thing done inside destroy_dev is the call to the destructors > > of the cdevpriv data, that never had any restrictions on the sleepable > > context. > >=20 > > We do have the KPI for the callers that cannot drop the locks and need > > to do destroy_dev, destroy_dev_sched(9). >=20 > With the caveat that you can't make any assumptions about other threads i= n=20 > your cdevsw routines being finished when it returns. If you have per-dev= ice=20 > data structures you need to free that are not handled by cdevpriv then yo= u=20 > probably cannot safely free them. Yes, this is why it has callback to call after all threads are guaranteed to be off the methods code. --MXXuyh5iveicsfl4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkoVgSkACgkQC3+MBN1Mb4i4rgCeO5JnHc4c+0HUlvjj068W5RGj njMAoO1l3ZSZsjNuIs2mf7ThY2VfuhmP =YJD0 -----END PGP SIGNATURE----- --MXXuyh5iveicsfl4--