From owner-freebsd-current@FreeBSD.ORG Thu Nov 27 09:16:21 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 75E3D16A4CE for ; Thu, 27 Nov 2003 09:16:21 -0800 (PST) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5506443FA3 for ; Thu, 27 Nov 2003 09:16:19 -0800 (PST) (envelope-from enache@rdslink.ro) Received: (qmail 3291 invoked from network); 27 Nov 2003 16:20:59 -0000 Received: from unknown (HELO ratsnest.hole) (10.100.0.66) by mail.rdslink.ro with SMTP; 27 Nov 2003 16:20:59 -0000 Date: Thu, 27 Nov 2003 19:20:39 +0200 From: Enache Adrian To: Bruce Evans Message-ID: <20031127172039.GB1464@ratsnest.hole> Mail-Followup-To: Bruce Evans , Stefan Ehmann , freebsd-current@freebsd.org References: <20031126183744.GA9140@merlin.emma.line.org> <1069926206.891.3.camel@shoeserv.freebsd> <20031127214229.O78318@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031127214229.O78318@gamplex.bde.org> User-Agent: Mutt/1.4i cc: freebsd-current@freebsd.org cc: Stefan Ehmann 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 17:16:21 -0000 On Thu, Nov 27, 2003 a.d., Bruce Evans wrote: > > 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. I positively know that the given up buffers are the ones got with bread() in compute_sb_data() (ext2_vfsops:481). I doesn't matter if the mount is rw or ro. The comments in fs.h:155 suggests they will be released by biodone, but this doesn't happen :-) Regards, Adi