Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 1998 12:10:24 -0700 (MST)
From:      "David G. Andersen" <danderse@cs.utah.edu>
To:        hackers@FreeBSD.ORG
Subject:    Re: kern/8732: nfs mounts with 'intr' can cause system hang
Message-ID:  <13945.22202.436751.59097@torrey.cs.utah.edu>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13945.22202.436751.59097>