From owner-freebsd-hackers Thu Dec 17 14:08:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24844 for freebsd-hackers-outgoing; Thu, 17 Dec 1998 14:08:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtpott1.nortel.ca (smtpott1.nortel.ca [192.58.194.78]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24839 for ; Thu, 17 Dec 1998 14:08:13 -0800 (PST) (envelope-from Andrew.Atrens.atrens@nortelnetworks.com) Received: from zcars01t by smtpott1; Thu, 17 Dec 1998 17:08:01 -0500 Received: from wmerh01z.ca.nortel.com by zcars01t; Thu, 17 Dec 1998 17:06:15 -0500 Received: from hcarp00g.ca.nortel.com (atrens@hcarp00g.ca.nortel.com@wmerh01z) by wmerh01z.ca.nortel.com with ESMTP (8.7.1/8.7.1) id RAA09026; Thu, 17 Dec 1998 17:06:14 -0500 (EST) Date: Thu, 17 Dec 1998 17:14:20 -0500 (EST) From: "Andrew Atrens" Reply-To: "Andrew Atrens" To: "David G. Andersen" cc: hackers@FreeBSD.ORG Subject: Re: kern/8732: nfs mounts with 'intr' can cause system hang In-Reply-To: <13945.22202.436751.59097@torrey.cs.utah.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG So far, so good ... my system is current as of Dec 16. Andrew. -- On Thu, 17 Dec 1998, David G. Andersen wrote: > Date: Thu, 17 Dec 1998 12:10:24 -0700 (MST) > From: David G. Andersen > To: hackers@FreeBSD.ORG > Subject: Re: kern/8732: nfs mounts with 'intr' can cause system hang > > > I've submitted a patch to vfs_subr.c which causes the kernel to return > EINTR on an interrupted close(). It's behaving properly on our > systems, but I'd love it if other interested parties (Karl, Alfred, > Andrew?) would give it a run before I say "look, it works." > > -dave > > Index: vfs_subr.c > =================================================================== > RCS file: /n/marker/usr/lsrc/FreeBSD/CVS/src/sys/kern/vfs_subr.c,v > retrieving revision 1.174 > diff -r1.174 vfs_subr.c > 582,584c582,589 > < tsleep((caddr_t)&vp->v_numoutput, > < slpflag | (PRIBIO + 1), > < "vinvlbuf", slptimeo); > --- > > if (error = tsleep((caddr_t)&vp->v_numoutput, > > slpflag | (PRIBIO + 1), > > "vinvlbuf", slptimeo)) { > > if (error == EINTR) { > > splx(s); > > return (EINTR); > > } > > } > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message