Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 19:28:25 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Scott Long <scottl@samsco.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, attilio@freebsd.org, rwatson@freebsd.org, svn-src-head@freebsd.org, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: svn commit: r192535 - head/sys/kern
Message-ID:  <20090521162825.GS1927@deviant.kiev.zoral.com.ua>
In-Reply-To: <200905211223.55113.jhb@freebsd.org>
References:  <3bbf2fe10905210629p46c7a204v6863aaba77354462@mail.gmail.com> <200905211211.00168.jhb@freebsd.org> <20090521161535.GQ1927@deviant.kiev.zoral.com.ua> <200905211223.55113.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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