diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2017-02-28 15:52:49 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2017-03-12 23:03:03 -0400 |
commit | fc97b1dc38ad46302d51a988cda18335f88514a2 (patch) | |
tree | 71e92d6c74158533bc10722050c1cda8d7efcb46 /xlators/storage/posix/src/posix.h | |
parent | eac6dfc314abe4dc50c54bf6c6cc004dfd73d5ac (diff) |
storage/posix: Use granular mutex locks for pgfid update syscalls
Change-Id: Ie5d635951c483d858dc4be2a90fb24b8b5f4f02d
BUG: 1421938
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: https://review.gluster.org/16869
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: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 01a0bfa6860..4e43b1f2d32 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -194,6 +194,7 @@ typedef struct { uint64_t unlink_flag; pthread_mutex_t xattrop_lock; pthread_mutex_t write_atomic_lock; + pthread_mutex_t pgfid_lock; } posix_inode_ctx_t; #define POSIX_BASE_PATH(this) (((struct posix_private *)this->private)->base_path) |