From james@jrv.org  Wed Sep  9 09:04:40 2009
Return-Path: <james@jrv.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 896AC106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Sep 2009 09:04:40 +0000 (UTC)
	(envelope-from james@jrv.org)
Received: from mail.jrv.org (rrcs-24-73-246-106.sw.biz.rr.com [24.73.246.106])
	by mx1.freebsd.org (Postfix) with ESMTP id 31A908FC0A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  9 Sep 2009 09:04:39 +0000 (UTC)
Received: from bigtex.housenet.jrv (localhost [127.0.0.1])
	by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n8994cXM094662
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 9 Sep 2009 04:04:38 -0500 (CDT)
	(envelope-from james@bigtex.housenet.jrv)
Received: (from root@localhost)
	by bigtex.housenet.jrv (8.14.3/8.14.3/Submit) id n8994c2x094661;
	Wed, 9 Sep 2009 04:04:38 -0500 (CDT)
	(envelope-from james)
Message-Id: <200909090904.n8994c2x094661@bigtex.housenet.jrv>
Date: Wed, 9 Sep 2009 04:04:38 -0500 (CDT)
From: "James R. Van Artsdalen" <james-freebsd-current@jrv.org>
Reply-To: "James R. Van Artsdalen" <james-freebsd-current@jrv.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ZFS panic "lock &arg.lock already initialized" during zfs recv
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         138656
>Category:       kern
>Synopsis:       [zfs] [panic] ZFS panic "lock &arg.lock already initialized" during zfs recv
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pjd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 09 09:10:02 UTC 2009
>Closed-Date:    Mon Sep 14 08:08:17 UTC 2009
>Last-Modified:  Mon Sep 14 08:08:17 UTC 2009
>Originator:     James R. Van Artsdalen
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD pygmy.housenet.jrv 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r196500M: Wed Aug 26 11:28:43 CDT 2009 james@pygmy.housenet.jrv:/usr/src/sys/amd64/compile/GENERIC amd64


>Description:

About 4 TB into a zfs recv the kernel panic'd with "lock &arg.lock already initialized".

core.txt available.

partial backtrace:
#9  0xffffffff8058262b in panic (fmt=Variable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:562
#10 0xffffffff8102f47e in dsl_dataset_destroy_sync (arg1=0xffffff02a4e7a000, tag=0xffffffff810d9b04, cr=0xffffff000d088000, tx=0xffffff026cbe3000)
    at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c:1422
#11 0xffffffff81031e3b in dsl_sync_task_group_sync (dstg=0xffffff026ca94b80, tx=0xffffff026cbe3000)
    at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_synctask.c:186
#12 0xffffffff81031963 in dsl_pool_sync (dp=0xffffff000da9e800, txg=53189) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c:320
#13 0xffffffff81040385 in spa_sync (spa=0xffffff0009ec4000, txg=53189) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:3988
#14 0xffffffff8104838f in txg_sync_thread () from /boot/kernel/zfs.ko
#15 0xffffffff8055a3da in fork_exit (callout=0xffffffff81048100 <txg_sync_thread>, arg=0xffffff000da9e800, frame=0xffffff81615b7c80) at ../../../kern/kern_fork.c:838
#16 0xffffffff8084a19e in fork_trampoline () at ../../../amd64/amd64/exception.S:561


>How-To-Repeat:
Receive large (10 TB) recv where the replicatiiion stream contains many filesystem deletes & rename.  Filesystem deletes and renames seem to cause more problems.

>Fix:

None
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Sep 9 15:06:45 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138656 

From: Artis Caune <artis.caune@gmail.com>
To: bug-followup@FreeBSD.org, james-freebsd-current@jrv.org
Cc:  
Subject: Re: kern/138656: [zfs] [panic] ZFS panic "lock &amp;arg.lock already 
	initialized" during zfs recv
Date: Thu, 10 Sep 2009 08:40:23 +0300

 I have the same problem but only with debugging turned on when it's
 panic in few minutes after box startup.
 
 With debugging turned off I never got this panic. (stable/8 r196679)
 
 
 
 
 
 -- 
 Artis Caune
 
     Everything should be made as simple as possible, but not simpler.
State-Changed-From-To: open->closed 
State-Changed-By: pjd 
State-Changed-When: pon 14 wrz 2009 08:01:07 UTC 
State-Changed-Why:  
Duplicate of kern/135480. 
Problem already fixed in HEAD. 


Responsible-Changed-From-To: freebsd-fs->pjd 
Responsible-Changed-By: pjd 
Responsible-Changed-When: pon 14 wrz 2009 08:01:07 UTC 
Responsible-Changed-Why:  
I'll take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138656 
>Unformatted:
