From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 15:02:09 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 00C1A16A401 for ; Tue, 17 Apr 2007 15:02:09 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.freebsd.org (Postfix) with ESMTP id B998413C44B for ; Tue, 17 Apr 2007 15:02:06 +0000 (UTC) (envelope-from freebsd@gm.nunu.org) Received: by py-out-1112.google.com with SMTP id f31so1386453pyh for ; Tue, 17 Apr 2007 08:02:06 -0700 (PDT) Received: by 10.35.103.12 with SMTP id f12mr13456563pym.1176822126096; Tue, 17 Apr 2007 08:02:06 -0700 (PDT) Received: by 10.35.52.3 with HTTP; Tue, 17 Apr 2007 08:02:06 -0700 (PDT) Message-ID: <626eb4530704170802t7a797961q16aa039251af10ea@mail.gmail.com> Date: Wed, 18 Apr 2007 00:02:06 +0900 From: "Hidetoshi Shimokawa" Sender: freebsd@gm.nunu.org To: "Pawel Jakub Dawidek" In-Reply-To: <20070417095631.GB4875@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <57200BF94E69E54880C9BB1AF714BBCBB521@w2003s01.double-l.local> <20070416094918.GC1068@garage.freebsd.pl> <46234D8E.8020501@yandex.ru> <20070416102623.GF1068@garage.freebsd.pl> <626eb4530704161851u74ba452am73bd8891b7b59e7f@mail.gmail.com> <20070417095631.GB4875@garage.freebsd.pl> X-Google-Sender-Auth: 0c5a6d21e4eed75b Cc: Johan Hendriks , "Andrey V. Elsukov" , freebsd-current@freebsd.org Subject: Re: ls -al .zfs/snapshots dir reboots machine 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: Tue, 17 Apr 2007 15:02:09 -0000 On 4/17/07, Pawel Jakub Dawidek wrote: > On Tue, Apr 17, 2007 at 10:51:37AM +0900, Hidetoshi Shimokawa wrote: > > I can repoduce this hang. > > > > # cd /pool/test/.zfs/snapshot > > # /bin/ls > > snap > > # /bin/ls -F > > ls: snap: No such file or directory > > # /bin/ls -F > > (hangs) > > Are you able to break into debugger? I was able to reproduce it once > (but with panic in crdup()), but I can no longer do it... In my case, only 'ls' hangs and other part of the system is normal. # ps alxg | grep ls 0 2129 2118 0 -4 0 6100 1512 zfs D+ p0 0:00.01 /bin/ls -F Once, I got "panic: lockmgr: locking against myself" 10 or 20 min. later of "ls -F". > > It looks like another name cache problem for me. > > I noticed 'cache_purge(vp)' is commented out in domount() in opensolaris_vfs.c. > > Shouldn't we need 'dnlc_purge_vp(vp)' here? > > There is dnlc_purge_vfsp() at the begining of zfs_umount(), which should > be sufficient. domount() of opensolaris also has dnlc_purge_vp() to invalidate cached entry for the mount point. Do you really think it's unnecessary? http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/vfs.c#1383 -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG