summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-data.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-07-13 00:53:20 +0530
committerXavier Hernandez <xhernandez@datalab.es>2015-07-14 00:23:46 -0700
commit34e65c4b3aac3cbe80ec336c367b78b01376a7a3 (patch)
tree241aae56a057f404524d75bbda664abfe9eefd31 /xlators/cluster/ec/src/ec-data.h
parentc4009f895818a84ed4c3bb8f826e78d17a6a5b3e (diff)
cluster/ec: Prevent data corruptions
- On lock reuse preserve 'healing' bits - Don't set ctx->size outside locks in healing code - Allow xattrop internal fops also on the fop->mask. Change-Id: I6b76da5d7ebe367d8f3552cbf9fd18e556f2a171 BUG: 1232678 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/11640 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Diffstat (limited to 'xlators/cluster/ec/src/ec-data.h')
-rw-r--r--xlators/cluster/ec/src/ec-data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-data.h b/xlators/cluster/ec/src/ec-data.h
index 135ccdf5f53..ec470e9e8c1 100644
--- a/xlators/cluster/ec/src/ec-data.h
+++ b/xlators/cluster/ec/src/ec-data.h
@@ -146,6 +146,7 @@ struct _ec_lock
the next unlock/lock cycle. */
uintptr_t mask;
uintptr_t good_mask;
+ uintptr_t healing;
int32_t refs;
int32_t refs_frozen;
int32_t inserted;