diff options
| author | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-08-12 18:04:39 +0000 |
|---|---|---|
| committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1999-08-12 18:04:39 +0000 |
| commit | e868365294028a68bc50452f184fece430c97e3d (patch) | |
| tree | f26d612d850d90551da4a6af9001728eaec1e0be | |
| parent | 5af2ec36b07f8a26ab8eaea4a7cf61e8ab0879f4 (diff) | |
Notes
| -rw-r--r-- | sys/nfs/nfs_bio.c | 6 | ||||
| -rw-r--r-- | sys/nfsclient/nfs_bio.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index ec593d8106ff..90f19f2a58fb 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.73 1999/06/16 23:27:46 mckusick Exp $ + * $Id: nfs_bio.c,v 1.74 1999/06/26 02:46:29 mckusick Exp $ */ @@ -802,6 +802,8 @@ again: bcount = on; bp = nfs_getcacheblk(vp, lbn, bcount, p); + if (!bp) + return (EINTR); save = bp->b_flags & B_CACHE; np->n_size = uio->uio_offset + n; @@ -821,6 +823,8 @@ again: if ((off_t)(lbn + 1) * biosize > np->n_size) bcount = np->n_size - (off_t)lbn * biosize; bp = nfs_getcacheblk(vp, lbn, bcount, p); + if (!bp) + return (EINTR); } /* diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index ec593d8106ff..90f19f2a58fb 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.73 1999/06/16 23:27:46 mckusick Exp $ + * $Id: nfs_bio.c,v 1.74 1999/06/26 02:46:29 mckusick Exp $ */ @@ -802,6 +802,8 @@ again: bcount = on; bp = nfs_getcacheblk(vp, lbn, bcount, p); + if (!bp) + return (EINTR); save = bp->b_flags & B_CACHE; np->n_size = uio->uio_offset + n; @@ -821,6 +823,8 @@ again: if ((off_t)(lbn + 1) * biosize > np->n_size) bcount = np->n_size - (off_t)lbn * biosize; bp = nfs_getcacheblk(vp, lbn, bcount, p); + if (!bp) + return (EINTR); } /* |
