summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2017-02-28 14:27:51 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-03-06 11:19:18 -0500
commit44a8e1d4947a9f701bfd7d83558263d6ec314764 (patch)
treeeba993703a093228ba6760bc5fa3c213eca8803f /xlators/storage/posix/src/posix.h
parente46cb08e9d381c46277631fa266751cd63f3823c (diff)
storage/posix: Use more granular mutex locks for atomic writes
Backport of: https://review.gluster.org/16785 Change-Id: If80b1543c4fe16cb81e2ae92ccca695f3bf450d7 BUG: 1427387 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: https://review.gluster.org/16841 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h
index e6304250d14..01a0bfa6860 100644
--- a/xlators/storage/posix/src/posix.h
+++ b/xlators/storage/posix/src/posix.h
@@ -193,6 +193,7 @@ typedef struct {
typedef struct {
uint64_t unlink_flag;
pthread_mutex_t xattrop_lock;
+ pthread_mutex_t write_atomic_lock;
} posix_inode_ctx_t;
#define POSIX_BASE_PATH(this) (((struct posix_private *)this->private)->base_path)