Date: Thu, 17 Dec 1998 11:10:01 -0800 (PST) From: "David G. Andersen" <danderse@cs.utah.edu> To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8732: nfs mounts with 'intr' can cause system hang Message-ID: <199812171910.LAA05058@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/8732; it has been noted by GNATS. From: "David G. Andersen" <danderse@cs.utah.edu> To: David Malone <dwmalone@maths.tcd.ie> Cc: freebsd-gnats-submit@freebsd.org, danderse@cs.utah.edu, nops@maths.tcd.ie Subject: Re: kern/8732: nfs mounts with 'intr' can cause system hang Date: Thu, 17 Dec 1998 12:08:23 -0700 (MST) I decided to take the "return INTR on close, and don't worry about it" approach. This patch does exactly this. We're testing it here now, and it seems to work, and doesn't seem to have broken anything. Testers wanted. :-) 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-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812171910.LAA05058>