From owner-freebsd-hackers Thu Dec 17 11:10:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02917 for freebsd-hackers-outgoing; Thu, 17 Dec 1998 11:10:34 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wrath.cs.utah.edu (wrath.cs.utah.edu [155.99.198.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02910 for ; Thu, 17 Dec 1998 11:10:32 -0800 (PST) (envelope-from danderse@cs.utah.edu) Received: from torrey.cs.utah.edu (torrey.cs.utah.edu [155.99.212.91]) by wrath.cs.utah.edu (8.8.8/8.8.8) with ESMTP id MAA06022 for ; Thu, 17 Dec 1998 12:10:24 -0700 (MST) Received: (from danderse@localhost) by torrey.cs.utah.edu (8.9.1/8.9.1) id MAA00440; Thu, 17 Dec 1998 12:10:24 -0700 (MST) (envelope-from danderse@cs.utah.edu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13945.22202.436751.59097@torrey.cs.utah.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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