From owner-freebsd-bugs@FreeBSD.ORG Wed Apr 11 18:00:27 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE456106566B for ; Wed, 11 Apr 2012 18:00:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 702B68FC14 for ; Wed, 11 Apr 2012 18:00:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3BI0RbS098505 for ; Wed, 11 Apr 2012 18:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3BI0RQG098504; Wed, 11 Apr 2012 18:00:27 GMT (envelope-from gnats) Resent-Date: Wed, 11 Apr 2012 18:00:27 GMT Resent-Message-Id: <201204111800.q3BI0RQG098504@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E645106564A for ; Wed, 11 Apr 2012 17:53:06 +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 7906E8FC17 for ; Wed, 11 Apr 2012 17:53:06 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3BHr6NE054653 for ; Wed, 11 Apr 2012 17:53:06 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3BHr6Ba054652; Wed, 11 Apr 2012 17:53:06 GMT (envelope-from nobody) Message-Id: <201204111753.q3BHr6Ba054652@red.freebsd.org> Date: Wed, 11 Apr 2012 17:53:06 GMT From: Yuri To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/166851: Copying directory from the mounted UFS disk image hangs in DL+ vnread state (source and destination both on the same ZFS) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2012 18:00:27 -0000 >Number: 166851 >Category: kern >Synopsis: Copying directory from the mounted UFS disk image hangs in DL+ vnread state (source and destination both on the same ZFS) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 11 18:00:27 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Yuri >Release: 9.0-STABLE amd64 >Organization: n/a >Environment: >Description: I have 82GB UFS image file (ufs-snapshot.img) mounted on some directory ufs-snapshot.mount. (mount /dev/`mdconfig -a -t vnode -f ufs-snapshot.img` ufs-snapshot.mount) Both original file ufs-snapshot.img and ufs-snapshot.mount are on the same ZFS disk. Command 'cp -R ufs-snapshot.mount/usr other-dir/' hanged in the middle with DL+ status: $ ps ax | grep cp 73635 10 DL+ 0:12.19 cp -R ufs-snapshot.mount/usr other-dir/ 'top' shows it in vnread state: 73635 root 1 20 0 10084K 2672K vnread 1 0:12 0.00% cp When I ran 'ls' in the same mounted directory it hanged too with D+ status: $ ps ax | grep ls 75882 2 D+ 0:00.00 ls ufs-snapshot.mount/ Subsequent 'ls' of this ZFS disk's top directory hangs in the same way. And after few hours system freezes. It appears that cp -R creates the gridlock condition when it copies from UFS contained in the image file within some ZFS disk into the same ZFS disk. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: