From nobody@FreeBSD.org  Wed Dec 27 07:59:28 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id DB9F837B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Dec 2000 07:59:23 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eBRFxN510584;
	Wed, 27 Dec 2000 07:59:23 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200012271559.eBRFxN510584@freefall.freebsd.org>
Date: Wed, 27 Dec 2000 07:59:23 -0800 (PST)
From: furio+fb@spin.it
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: panic: softdep_disk_write_complete: lock is held
X-Send-Pr-Version: www-1.0

>Number:         23887
>Category:       kern
>Synopsis:       panic: softdep_disk_write_complete: lock is held
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 27 08:00:01 PST 2000
>Closed-Date:    Sun Nov 18 12:30:11 PST 2001
>Last-Modified:  Sun Nov 18 12:30:38 PST 2001
>Originator:     furio ercolessi
>Release:        3.5.1-RELEASE
>Organization:
Spin srl
>Environment:
FreeBSD photon.spin.it 3.5.1-RELEASE FreeBSD 3.5.1-RELEASE #3: Mon Oct 16 14:27:21 CEST 2000     root@photon.spin.it:/usr/src/sys/compile/PHOTON  i386
Compaq Proliant 3000R, dual processor, custom SMP kernel with SoftUpdates
/usr/src/sys/ufs/ffs/ffs_softdep.c contains:
 *      from: @(#)ffs_softdep.c 9.36 (McKusick) 5/6/99
 * $FreeBSD: src/sys/ufs/ffs/ffs_softdep.c,v 1.34.2.4 2000/06/22 19:32:07 peter

>Description:
Kernel crashes under heavy disk (and perhaps also CPU) load.  
Nothing in logs (as the problem affects the filesystem holding /var).
Observed on console:

panic: softdep_fsync: pending ops
mp_lock=01000001 ; cpu id=1 ; lapic.id=00000

syncing disks ... panic: softdep_disk_write_complete: lock is held
mp_lock=01000001; cpu id=1 ; lapic.id=00000
[...] 

The problem goes away is softupdates is disabled.

>How-To-Repeat:
Problem occurs randomly; system must be under high I/O load.
Problem goes away by turning off softupdates.  This is how we
are running now, as this is a production server.
It is difficult for us to do testing/debugging right now.
Production is likely to be moved elsewhere on feb 2001; we
would like to avoid the problem on the new server, which will
run a 4.x based release.

>Fix:
No fix known other than disabling Softupdates.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 18 11:39:50 PST 2001 
State-Changed-Why:  

Does this still occur with more recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23887 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 18 12:30:11 PST 2001 
State-Changed-Why:  

Submitter says that the problem is fixed. Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23887 
>Unformatted:
