From owner-freebsd-fs@FreeBSD.ORG Mon Oct 3 16:31:06 2011 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BDAF1065670; Mon, 3 Oct 2011 16:31:06 +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 6FCAF8FC1B; Mon, 3 Oct 2011 16:31:04 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p93GV1XU080742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Oct 2011 19:31:01 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p93GV0Qi073819; Mon, 3 Oct 2011 19:31:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p93GV06g073818; Mon, 3 Oct 2011 19:31:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 3 Oct 2011 19:31:00 +0300 From: Kostik Belousov To: Lev Serebryakov Message-ID: <20111003163100.GT1511@deviant.kiev.zoral.com.ua> References: <1258376930.20111002193223@serebryakov.spb.ru> <228926402.20111002231459@serebryakov.spb.ru> <349860851.20111003113417@serebryakov.spb.ru> <4E8986F0.3050007@freebsd.org> <1223820108.20111003161859@serebryakov.spb.ru> <20111003160145.GP1511@deviant.kiev.zoral.com.ua> <1298204673.20111003202728@serebryakov.spb.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n+Pw2xyN35UiJQWs" Content-Disposition: inline In-Reply-To: <1298204673.20111003202728@serebryakov.spb.ru> 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.3 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: Lawrence Stewart , fs@freebsd.org Subject: Re: code in GEOM thread could not use vnode API (Was: alq_open_flags() panics in _mtx_lock_flags()) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 16:31:06 -0000 --n+Pw2xyN35UiJQWs Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 03, 2011 at 08:27:28PM +0400, Lev Serebryakov wrote: > Hello, Kostik. > You wrote 3 =CF=CB=D4=D1=C2=D2=D1 2011 =C7., 20:01:45: >=20 > > Look at the body of e.g. g_io_schedule_down(), the > > THREAD_NO_SLEEPING(); > > call right before the call to geom start method. >=20 > > Basically, you cannot use any kernel subsystem in the context of > > the up/down threads that could sleep. This includes VFS, VM and > > everything that is layered on top of it. > VM too? Allocating of new element to put into working queue is > prohibited? It is what (almost) every GEOM class does. > Even geom_nop() allocate new struct bio from g_down thread. Sleeping (and thus non-failing) allocation is prohibited. --n+Pw2xyN35UiJQWs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6J40QACgkQC3+MBN1Mb4jbxACdGA87XkTHUnq29kstAeQqLaR8 V6sAoNMMc/eMzTJ+xOtAJboXOdt8qu7S =SnrY -----END PGP SIGNATURE----- --n+Pw2xyN35UiJQWs--