From owner-freebsd-current@FreeBSD.ORG Fri May 21 09:24:26 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0108106564A; Fri, 21 May 2010 09:24:26 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9FE208FC1D; Fri, 21 May 2010 09:24:26 +0000 (UTC) Received: by pvg12 with SMTP id 12so406317pvg.13 for ; Fri, 21 May 2010 02:24:26 -0700 (PDT) Received: by 10.143.87.2 with SMTP id p2mr838150wfl.323.1274433865926; Fri, 21 May 2010 02:24:25 -0700 (PDT) Received: from [10.0.1.198] (udp022762uds.hawaiiantel.net [72.234.79.107]) by mx.google.com with ESMTPS id d14sm743541rva.18.2010.05.21.02.24.23 (version=SSLv3 cipher=RC4-MD5); Fri, 21 May 2010 02:24:24 -0700 (PDT) Date: Thu, 20 May 2010 23:24:21 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Erik Cederstrand In-Reply-To: Message-ID: References: <20100508102005.GB1867@elmar.spoerlein.net> <20100510061057.GA93038@server.vk2pj.dyndns.org> <20100512141154.GF88504@acme.spoerlein.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Attilio Rao , current@freebsd.org, Peter Jeremy Subject: Re: LOR: ufs vs bufwait 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: Fri, 21 May 2010 09:24:26 -0000 On Fri, 21 May 2010, Erik Cederstrand wrote: > > Den 12/05/2010 kl. 22.44 skrev Jeff Roberson: >> >> I think Peter Holm also saw this once while we were testing SUJ and reproduced ~30 second hangs with stock sources. At this point we need to brainstorm ideas for adding debugging instrumentation and come up with the quickest possible repro. > > FWIW, I get this LOR on a ClangBSD virtual machine running the stess2 test suite. > > I can reproduce the LOR reliably like this: > > # cd stress2 > #./run.sh lockf.cfg > - press ctrl-C > - another LOR is triggered by the ctrl-C (a dirhash/bufwait LOR described in kern/137852) > # ./run.sh mkdir.cfg > - LOR is triggered immediately > > Erik The LOR is actually safe. I need to bless the acquisition. We have always acquired the buffers in this order. The deadlocks people were seeing were actually livelocks due to softdepflush looping indefinitely. I have committed a fix for that. Thanks, Jeff