From nobody@FreeBSD.org  Fri Mar 15 02:23:59 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 6CB07BB
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Mar 2013 02:23:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 5CF669BC
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Mar 2013 02:23:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2F2NvD5055384
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Mar 2013 02:23:57 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2F2Nv4Y055383;
	Fri, 15 Mar 2013 02:23:57 GMT
	(envelope-from nobody)
Message-Id: <201303150223.r2F2Nv4Y055383@red.freebsd.org>
Date: Fri, 15 Mar 2013 02:23:57 GMT
From: Nathaniel Filardo <nwf@cs.jhu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: zfs send -D causes "panic: System call ioctl returning with 1 locks held"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176978
>Category:       kern
>Synopsis:       [zfs] [panic] zfs send -D causes "panic: System call ioctl returning with 1 locks held"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 15 02:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun Mar 17 20:50:00 UTC 2013
>Originator:     Nathaniel Filardo
>Release:        9.1-STABLE
>Organization:
>Environment:
FreeBSD hydra.priv.oc.ietfng.org 9.1-STABLE FreeBSD 9.1-STABLE #30 r+53cdf6c-dirty: Mon Mar  4 01:01:04 EST 2013     root@hydra.priv.oc.ietfng.org:/usr/obj/systank/src-git/sys/NWFKERN  sparc64

>Description:
I am attempting to move some data from one set of disks to another by using zfs send.  It was not going quickly, thanks to dedup, so I thought I'd stop it and rerun with zfs send -D, which dedups the stream rather than relying on the recv side to do it (with all the attendant I/O).  I then got

panic: System call ioctl returning with 1 locks held
cpuid = 1
KDB: stack backtrace:
panic() at panic+0x290
syscall() at syscall+0x460
-- syscall (54, FreeBSD ELF64, sys_ioctl) %o7=0x4098bb08 --
userland() at 0x40bfdb28
user trace: trap %o7=0x4098bb08
pc 0x40bfdb28, sp 0x7fdffff4571
pc 0x4098d8b4, sp 0x7fdffff4641
pc 0x40996904, sp 0x7fdffff4711
pc 0x40994b4c, sp 0x7fdffff8ad1
pc 0x40995dfc, sp 0x7fdffff9411
pc 0x409978a8, sp 0x7fdffffd7d1
pc 0x107ff8, sp 0x7fdffffd8c1
pc 0x10e024, sp 0x7fdffffd9a1
pc 0x1049d8, sp 0x7fdffffe281
pc 0x402198b4, sp 0x7fdffffe341
done

That is not likely to be too useful, but maybe the problem description is enough.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Mar 17 14:51:58 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: Andriy Gapon <avg@FreeBSD.org>
To: bug-followup@FreeBSD.org, nwf@cs.jhu.edu
Cc:  
Subject: Re: kern/176978: [zfs] [panic] zfs send -D causes &quot;panic: System
 call ioctl returning with 1 locks held&quot;
Date: Sun, 17 Mar 2013 22:39:51 +0200

 Please try to obtain a crashdump according to the following guidelines:
 http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html
 
 -- 
 Andriy Gapon
>Unformatted:
