Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2018 20:39:54 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r334352 - projects/pnfs-planb-server/sys/fs/nfsserver
Message-ID:  <201805292039.w4TKdsWk050084@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Tue May 29 20:39:54 2018
New Revision: 334352
URL: https://svnweb.freebsd.org/changeset/base/334352

Log:
  Lock the directory LK_EXCLUSIVE for the DS file removal.

Modified:
  projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdport.c

Modified: projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdport.c	Tue May 29 20:30:46 2018	(r334351)
+++ projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdport.c	Tue May 29 20:39:54 2018	(r334352)
@@ -3438,7 +3438,7 @@ nfssvc_nfsd(struct thread *td, struct nfssvc_args *uap
 				vput(nvp);
 				if (fds != NULL && error == 0) {
 					curdvp = fds->nfsdev_dsdir[pf->dsf_dir];
-					ret = vn_lock(curdvp, LK_SHARED);
+					ret = vn_lock(curdvp, LK_EXCLUSIVE);
 					if (ret == 0) {
 						nfsrv_dsremove(curdvp, fname,
 						    td->td_ucred, td);



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