summaryrefslogtreecommitdiffstats
path: root/xlators/nfs
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2016-02-26 19:28:58 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-03-17 08:21:06 -0700
commita6aecae2cd8171b8538bfe5d2800bdd157380b85 (patch)
tree4ba29f0600840f0626e9ed0cffc51fef737bdf67 /xlators/nfs
parent7e44c783ad731856956929f6614bbe045c26ea3a (diff)
nfs: fix lock variable type
variable 'mountlock' should be generic since it is used by macros LOCK_* , it can be used spinlock or mutexlock Change-Id: If558bcf8debd98c4e1a615df0f9f0caec586e39b BUG: 1312346 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Reviewed-on: http://review.gluster.org/13532 Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/nfs')
-rw-r--r--xlators/nfs/server/src/mount3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/mount3.h b/xlators/nfs/server/src/mount3.h
index 18fcdd9a2a7..ce01a6c543d 100644
--- a/xlators/nfs/server/src/mount3.h
+++ b/xlators/nfs/server/src/mount3.h
@@ -149,7 +149,7 @@ struct mount3_state {
dict_t *mountdict;
/* Used to protect the mountlist & the mount dict */
- pthread_spinlock_t mountlock;
+ gf_lock_t mountlock;
/* Used to insert additional authentication parameters */
struct mnt3_auth_params *auth_params;