From owner-freebsd-current Mon Aug 5 15:46: 0 2002 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 2C80137B400 for ; Mon, 5 Aug 2002 15:45:58 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB0C543E6A for ; Mon, 5 Aug 2002 15:45:57 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id D09D12A7D6; Mon, 5 Aug 2002 15:45:57 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Pierre Beyssac Cc: Bruce Evans , freebsd-current@FreeBSD.ORG Subject: Re: deadlock in fs/msdosfs/msdosfs_vnops.c:msdosfs_fsync() In-Reply-To: <20020805224153.A564@fasterix.frmug.org> Date: Mon, 05 Aug 2002 15:45:57 -0700 From: Peter Wemm Message-Id: <20020805224557.D09D12A7D6@canning.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Pierre Beyssac wrote: > Well, I think I got it... > > --- msdosfs_vnops.c.orig Mon Aug 5 21:20:13 2002 > +++ msdosfs_vnops.c Mon Aug 5 22:35:52 2002 > @@ -830,7 +830,7 @@ > goto loop; > } > while (vp->v_numoutput) { > - vp->v_vflag |= VI_BWAIT; > + vp->v_iflag |= VI_BWAIT; > (void) msleep((caddr_t)&vp->v_numoutput, VI_MTX(vp), > PRIBIO + 1, "msdosfsn", 0); > } > > I'll commit that if nobody objects to it. It looks pretty obvious, IMHO go right ahead - especially if it fixes it :-). Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message