From owner-freebsd-current@FreeBSD.ORG Wed Dec 30 21:56:06 2009 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 EE5F61065670 for ; Wed, 30 Dec 2009 21:56:06 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout025.mac.com (asmtpout025.mac.com [17.148.16.100]) by mx1.freebsd.org (Postfix) with ESMTP id DC4688FC12 for ; Wed, 30 Dec 2009 21:56:06 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp025.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KVH00HSJJKWW140@asmtp025.mac.com> for freebsd-current@freebsd.org; Wed, 30 Dec 2009 13:55:45 -0800 (PST) From: Marcel Moolenaar Date: Wed, 30 Dec 2009 13:55:44 -0800 Message-id: <4C83129A-00FE-4E93-8F65-BFAE4B6F6BC7@mac.com> To: FreeBSD-Current Mailing List X-Mailer: Apple Mail (2.1077) Subject: panic: mutex Giant owned at /tank/usr/src/sys/kern/kern_thread.c:357 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: Wed, 30 Dec 2009 21:56:07 -0000 All, We still have a ZFS-triggerable panic. The conditions under which the panic happens are "simple": 1. Create a mount-point /dos, and mount a MS-DOS file system there. 2. Create directory /dos/zfs 3. Make /boot/zfs a symlink to /dos/zfs 4. create or import a pool, like "zpool import tank" ZFS will create/update the zpool cache (/boot/zfs/zpool.cache) and when done exits the zfskern/solthread thread, at which time the panic happens: panic: mutex Giant owned at /tank/usr/src/sys/kern/kern_thread.c:357 cpuid = 0 KDB: enter: panic [thread pid 8 tid 100147 ] Stopped at kdb_enter+0x92: [I2] addl r14=0xffffffffffe1f3f0,gp ;; db> show alllocks Process 8 (zfskern) thread 0xe000000010df4a20 (100147) exclusive sleep mutex process lock (process lock) r = 0 (0xe000000010407660) locked @ /tank/usr/src/sys/kern/kern_kthread.c:326 exclusive sleep mutex Giant (Giant) r = 1 (0xe0000000048f8da8) locked @ /tank/usr/src/sys/kern/vfs_lookup.c:755 It looks to me that this is a bug in vfs_lookup.c, but I'm not savvy enough to know this for sure or fix it fast myself. Help is welcome, because this particular bug hits ia64 hard: /boot is a symlink to /efi/boot, where /efi is a msdosfs mount point. FYI, -- Marcel Moolenaar xcllnt@mac.com