From owner-freebsd-stable Mon May 13 9:38:51 2002 Delivered-To: freebsd-stable@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 00CBF37B400 for ; Mon, 13 May 2002 09:38:48 -0700 (PDT) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.3/8.9.1) with ESMTP id g4DGcdhU068501; Mon, 13 May 2002 09:38:39 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.3/8.12.3/Submit) id g4DGcc72068498; Mon, 13 May 2002 09:38:38 -0700 (PDT) Date: Mon, 13 May 2002 09:38:38 -0700 (PDT) From: Matthew Dillon Message-Id: <200205131638.g4DGcc72068498@apollo.backplane.com> To: Bruce Campbell Cc: Danny Schales , Rolandas Naujikas , Doug White , Wilko Bulte , Paul Horechuk , stable@FreeBSD.ORG Subject: Re: nfs_fsync: not dirty error in 4.5-RELEASE (possible solution) References: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Excellent! Thanks for the confirmation, Bruce. I comitted this patch on April 3rd after getting positive results from Danny, but it's always nice to have independant confirmation that a bugs been fixed! -Matt Matthew Dillon :I've been running the patch below now for almost a month on 3 separate :systems, with no problems now. : :These 3 systems had previously experienced about 10 "nfs_fsync: not dirty" :panics since they had been installed just 3 weeks prior. : :My analysis of 10 panics in 3 weeks versus 0 panics in 4 weeks makes :me suspect the problem has been fixed with the patch below. : :... :> I believe that the correct fix is to change this code to: :> :> /* :> * If B_INVAL, clear B_DELWRI. We've already placed the buffer :> * on the correct queue. :> */ :> if ((bp->b_flags & (B_INVAL|B_DELWRI)) == (B_INVAL|B_DELWRI)) :> bundirty(bp); :> :> -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message