summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/posix.c
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2018-11-08 22:06:05 +0530
committerSusant Palai <spalai@redhat.com>2018-11-08 22:08:17 +0530
commit03b65fd52d3e4e3e9d4978fd30c694c51bcde3e3 (patch)
treec3163455a3d553e7a09ea0487b6e60b930e892f4 /xlators/features/locks/src/posix.c
parent0087294bd960a45debd614504613feb75de26f74 (diff)
features/locks:Use pthread_mutex_unlock() instead of pthread_mutex_lock()
Fixes CID 1396581 Change-Id: Ic04091b5783a75d8e1e605a9c1c28b77fea048d3 updates: bz#1647972 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Signed-off-by: Susant Palai <spalai@redhat.com>
Diffstat (limited to 'xlators/features/locks/src/posix.c')
-rw-r--r--xlators/features/locks/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 25bbda2072b..44766fbf09b 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -2940,7 +2940,7 @@ pl_metalk (call_frame_t *frame, xlator_t *this, inode_t *inode)
ret = -1;
}
}
- pthread_mutex_lock(&pl_inode->mutex);
+ pthread_mutex_unlock(&pl_inode->mutex);
if (ret == -1) {
goto out;