diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-07-03 01:55:14 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-07-03 01:55:14 +0000 |
commit | 3a96556757f87201173a233215f1e0c5d7dfcc39 (patch) | |
tree | 5dcb7225a0bae321af98862a6204e8f8f7a6e1eb /sys/nfs/nfs_vnops.c | |
parent | b1ddb46a3071d88d9009e71d376040e747870661 (diff) |
In readdir, set the calling process in the constructed uio structures.
Fixes problems with interruptible NFS mounts.
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index d241b63bb13..a1fccab3408 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.34 2001/06/27 04:58:46 art Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.35 2001/07/03 01:55:13 csapuntz Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -1887,6 +1887,7 @@ nfs_readdir(v) readdir_uio.uio_segflg = UIO_SYSSPACE; readdir_uio.uio_rw = UIO_READ; readdir_uio.uio_resid = NFS_DIRBLKSIZ; + readdir_uio.uio_procp = curproc; if (nmp->nm_flag & NFSMNT_RDIRPLUS) { error = nfs_readdirplusrpc(vp, &readdir_uio, cred, |