From owner-freebsd-current@FreeBSD.ORG Thu Nov 27 02:53:44 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1DE616A4CE for ; Thu, 27 Nov 2003 02:53:44 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E067143FEA for ; Thu, 27 Nov 2003 02:53:42 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id VAA19168; Thu, 27 Nov 2003 21:53:35 +1100 Date: Thu, 27 Nov 2003 21:53:35 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Stefan Ehmann In-Reply-To: <1069926206.891.3.camel@shoeserv.freebsd> Message-ID: <20031127214229.O78318@gamplex.bde.org> References: <20031126183744.GA9140@merlin.emma.line.org> <1069926206.891.3.camel@shoeserv.freebsd> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: 5.2-BETA: giving up on 4 buffers (ata) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 27 Nov 2003 10:53:44 -0000 On Thu, 27 Nov 2003, Stefan Ehmann wrote: > On Wed, 2003-11-26 at 19:37, Matthias Andree wrote: > > Hi, > > > > when I rebooted my 5.2-BETA (kernel about 24 hours old), it gave up on > > flushing 4 dirty blocks. > > > > I had three UFS1 softdep file systems mounted on one ATA drive, one > ext2 > > file system on another ATA drive and one ext2 file system on a SCSI > > drive. Both ext2 file systems had been mounted read-only, so they > can't > > have had dirty blocks. > > This is a known problem for nearly three months now (See PR 56675). It > happens to me every time I shut down the system if i don't unmount my > (read-only) ext2 file systems manually. I'm not sure if the problem is known for the read-only case. It is the same problem as in the read-write case. ext2fs hangs onto buffers, so shutdown cannot tell if it can look at the buffers and considers them to be busy. Then since shutdown cannot tell if it synced all dirty buffers or which buffers are associated with which file systems, it doesn't unmount any file systems and all dirty file systems that aren't unmounted before shutdown are left dirty. Read-only-mounted ext2fs file systems aren't left dirty but they break cleaning of other file systems. Bruce