summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_serv.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2022-05-27 11:10:55 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2022-05-27 11:10:55 +0000
commit8219f7f5ee8469264df7244953d5a42031ffb8ac (patch)
tree4fa271b2a7c0b9eafd9595f4572ecaf2137109a7 /sys/nfs/nfs_serv.c
parentd414dbbf6c1b45710df4b113763a4ba7d90c240e (diff)
Call uvm_vnp_uncache() before VOP_RENAME().
ok kettenis@
Diffstat (limited to 'sys/nfs/nfs_serv.c')
-rw-r--r--sys/nfs/nfs_serv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 4e18a83ae58..424fcc22f24 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.120 2021/03/11 13:31:35 jsg Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.121 2022/05/27 11:10:54 mpi Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -1488,6 +1488,9 @@ nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
error = -1;
out:
if (!error) {
+ if (tvp) {
+ (void)uvm_vnp_uncache(tvp);
+ }
error = VOP_RENAME(fromnd.ni_dvp, fromnd.ni_vp, &fromnd.ni_cnd,
tond.ni_dvp, tond.ni_vp, &tond.ni_cnd);
} else {