From nobody@FreeBSD.org  Mon Jun  1 00:14:22 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F16A4106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Jun 2009 00:14:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E03C98FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 Jun 2009 00:14:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n510EMQ5065194
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 1 Jun 2009 00:14:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n510EMwp065193;
	Mon, 1 Jun 2009 00:14:22 GMT
	(envelope-from nobody)
Message-Id: <200906010014.n510EMwp065193@www.freebsd.org>
Date: Mon, 1 Jun 2009 00:14:22 GMT
From: Randy Bush <randy@psg.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lor vfs_bio/ufs_dirhash
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135124
>Category:       amd64
>Synopsis:       [lor] lor vfs_bio/ufs_dirhash
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 01 00:20:00 UTC 2009
>Closed-Date:    Mon Jun 01 13:26:12 UTC 2009
>Last-Modified:  Tue Jun 02 04:55:25 UTC 2009
>Originator:     Randy Bush
>Release:        8-CURRENT Sun May 31 22:52:41 UTC 2009
>Organization:
Internet Initiative Japan
>Environment:
FreeBSD work0.psg.com 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Sun May 31 22:52:41 UTC 2009     root@work0.psg.com:/usr/obj/usr/src/sys/WORK0  amd64
>Description:
lock order reversal:
 1st 0xffffff8052aba050 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2556
 2nd 0xffffff0004f53000 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:275
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x81e
_sx_xlock() at _sx_xlock+0x55
ufsdirhash_acquire() at ufsdirhash_acquire+0x33
ufsdirhash_add() at ufsdirhash_add+0x19
ufs_direnter() at ufs_direnter+0x88b
ufs_makeinode() at ufs_makeinode+0x31c
VOP_CREATE_APV() at VOP_CREATE_APV+0xb1
vn_open_cred() at vn_open_cred+0x3fd
kern_openat() at kern_openat+0x159
syscall() at syscall+0x1dd
Xfast_syscall() at Xfast_syscall+0xd0
--- syscall (5, FreeBSD ELF64, open), rip = 0x800c0bfcc, rsp = 0x7fffffffe6f8, rbp = 0x7fffffffe860 ---

i think this may be different than 261
<http://sources.zabbadoz.net/freebsd/lor/261.html>

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Mon Jun 1 13:25:38 UTC 2009 
State-Changed-Why:  
This LOR is a duplicate of earlier reports.  It cannot deadlock as the 
dirhash lock is acquired on a new object before it is visible to other 
threads. 

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

From: John Baldwin <jhb@freebsd.org>
To: freebsd-amd64@freebsd.org
Cc: Randy Bush <randy@psg.com>,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/135124: lor vfs_bio/ufs_dirhash
Date: Mon, 1 Jun 2009 09:25:25 -0400

 It is not, it is the same exact LOR.
 
 -- 
 John Baldwin

From: Randy Bush <randy@psg.com>
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-amd64@freebsd.org,
	freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/135124: lor vfs_bio/ufs_dirhash
Date: Mon, 01 Jun 2009 23:30:21 +0900

 >> i think this may be different than 261
 >> <http://sources.zabbadoz.net/freebsd/lor/261.html>
 > It is not, it is the same exact LOR.
 
 apologies
 
 randy

From: John Baldwin <jhb@freebsd.org>
To: Randy Bush <randy@psg.com>
Cc: freebsd-amd64@freebsd.org,
 freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/135124: lor vfs_bio/ufs_dirhash
Date: Mon, 1 Jun 2009 10:40:06 -0400

 On Monday 01 June 2009 10:30:21 am Randy Bush wrote:
 > >> i think this may be different than 261
 > >> <http://sources.zabbadoz.net/freebsd/lor/261.html>
 > > It is not, it is the same exact LOR.
 > 
 > apologies
 
 No worries. :)
 
 -- 
 John Baldwin
>Unformatted:
