From owner-freebsd-current@FreeBSD.ORG Sat Sep 6 08:10:04 2008 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 26C34106564A; Sat, 6 Sep 2008 08:10:04 +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 A0A2A8FC1C; Sat, 6 Sep 2008 08:10:03 +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 esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1Kbsro-0006zD-Rk; Sat, 06 Sep 2008 11:10:00 +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 m8689vrd061064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 6 Sep 2008 11:09:57 +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.2/8.14.2) with ESMTP id m8689vvp076787; Sat, 6 Sep 2008 11:09:57 +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 m8689vHV076786; Sat, 6 Sep 2008 11:09:57 +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: Sat, 6 Sep 2008 11:09:57 +0300 From: Kostik Belousov To: Kris Kennaway Message-ID: <20080906080956.GY2038@deviant.kiev.zoral.com.ua> References: <48C0B59F.4030200@delphij.net> <48C0B781.40200@FreeBSD.org> <48C0BB1A.4020906@delphij.net> <48C0BC80.3000107@FreeBSD.org> <20080905092922.1aaa95f0@dilbert.office.centralnic.com> <48C0F320.5040002@FreeBSD.org> <20080905202525.GB1656@isis.u-strasbg.fr> <48C1F389.1090108@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/YLrkxBeBoBPjrwx" Content-Disposition: inline In-Reply-To: <48C1F389.1090108@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on 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 1Kbsro-0006zD-Rk 3ea8d3e568b573a7f5fb3a4ced494885 X-Terabit: YES Cc: Richard Todd , Pawel Jakub Dawidek , freebsd-current@freebsd.org Subject: Re: panic on shutdown anyone (insmntque())? 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, 06 Sep 2008 08:10:04 -0000 --/YLrkxBeBoBPjrwx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 06, 2008 at 12:35:45PM +0930, Kris Kennaway wrote: > Richard Todd wrote: > >Guy Brand writes: > > > >>Kris Kennaway (kris@freebsd.org) on 05/09/2008 at 18:21 wrote: > >> > >>>>>pjd has a fix in his p4 branch. > >>>>Same problem here with ZFS on root. Where can I find this patch? > >>>> Would be happy to test it. > >>>It was committed earlier today. > >>It fixed my shutdown panic. Thanks pjd > > > >But appears not to fix the panic I've seen trying to boot any kernel sin= ce > >the insmntque patches went in, just at the point where it tries to mount > >the root FS: > > > >Trying to mount root from zfs:rootpool/tolot-root > >KDB: stack backtrace: > >db_trace_self_wrapper(80bbd824,86ce5784,8086a0c3,874b4dc8,86ce5784,...) = at=20 > >db_trace_self_wrapper+0x26 > >kdb_backtrace(874b4dc8,86ce5784,80b1a6b5,86ce5794,874b4d70,...) at=20 > >kdb_backtrace+0x29 > >vfs_badlock(8107eda0,86ce5794,80cd8c20,874b4d70) at vfs_badlock+0x23 > >assert_vop_elocked(874b4d70,80bc7ddf,87ae406c,87ae406c,157,...) at=20 > >assert_vop_elocked+0x55 > >insmntque1(874b4d70,87b06670,80871200,0,86ce5808,...) at insmntque1+0x1c7 > >insmntque(874b4d70,87b06670,157,155,3,...) at insmntque+0x28 > >zfs_znode_alloc(3,0,e00,0,86ce585c,...) at zfs_znode_alloc+0x10d > >zfs_zget(87ae4000,3,0,86ce5950,8,...) at zfs_zget+0x1ce > >zfs_init_fs(87ae4000,86ce5950,8708fd00,87ae4008,2,...) at zfs_init_fs+0x= 2a0 > >zfs_mount(87b06670,870c4d20,80bc68f2,3f4,0,...) at zfs_mount+0x35a > >vfs_donmount(20,87af34e0,87af44c0,6,86ce5b78,...) at vfs_donmount+0x13ca > >kernel_mount(87af34e0,4001,87b03b80,ffffffff,86ce5bc0) at kernel_mount+0= x78 > >kernel_vmount(4001,80bc6bdf,87af34c0,80bc6bee,80bb3d40,...) at=20 > >kernel_vmount+0x63 > >vfs_mountroot_try(80bc6ef1,80bb3d40,80bab4a8,1,80864c00,...) at=20 > >vfs_mountroot_try+0x132 > >vfs_mountroot(80d0ceb0,4,80bb5090,264,870c2d94,...) at vfs_mountroot+0x4= 23 > >start_init(0,86ce5d38,80bb6ae4,322,870c2d0c,...) at start_init+0x65 > >fork_exit(807aca80,0,86ce5d38) at fork_exit+0xb8 > >fork_trampoline() at fork_trampoline+0x8 > >--- trap 0, eip =3D 0, esp =3D 0x86ce5d70, ebp =3D 0 --- > >insmntque: mp-safe fs and non-locked vp: 0x874b4d70 is not exclusive=20 > >locked but should be > >KDB: enter: lock violation > >[thread pid 1 tid 100002 ] > >Stopped at kdb_enter+0x3a: movl $0,kdb_why > >db>=20 >=20 > Yep, looks different. Yes, but I had an impression that pjd@ patch taken care of the issue too. The assert was added to the insmntque() function, verifying that filesystem marked mpsafe insterts exclusively locked vnode. --/YLrkxBeBoBPjrwx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkjCOtQACgkQC3+MBN1Mb4j4QgCfdeeByaqTmCC+rBFXVQMScZdk 59sAoPP0ppUP4GIxY7ICdO4a4kLV7fO2 =qhJJ -----END PGP SIGNATURE----- --/YLrkxBeBoBPjrwx--