summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-common.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2019-08-02 12:05:09 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2019-08-07 06:14:39 +0000
commitb0b57af4050f19fd9b38d48cfa35c119b0ac83f4 (patch)
tree7ab81ea66595c8530fa7eddbd7cba026ed23f7f7 /xlators/cluster/ec/src/ec-common.h
parentb1acf275a0779542d0ad1362e926658c037c94d8 (diff)
cluster/ec: Update lock->good_mask on parent fop failure
When discard/truncate performs write fop, it should do so after updating lock->good_mask to make sure readv happens on the correct mask fixes bz#1727081 Change-Id: Idfef0bbcca8860d53707094722e6ba3f81c583b7 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-common.h')
-rw-r--r--xlators/cluster/ec/src/ec-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/ec/src/ec-common.h b/xlators/cluster/ec/src/ec-common.h
index 7296091fc90..ce35b4878c1 100644
--- a/xlators/cluster/ec/src/ec-common.h
+++ b/xlators/cluster/ec/src/ec-common.h
@@ -205,4 +205,6 @@ char *
ec_msg_str(ec_fop_data_t *fop);
gf_boolean_t
__ec_is_last_fop(ec_t *ec);
+void
+ec_lock_update_good(ec_lock_t *lock, ec_fop_data_t *fop);
#endif /* __EC_COMMON_H__ */