diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2019-08-02 12:05:09 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2019-08-22 05:56:58 +0000 |
commit | 03b36d0d95abc4c531bc84e2ed1aa564c18f3ae2 (patch) | |
tree | fc8186ff4ebca71175c4fe9bdc0a9b9e3c838612 /xlators/cluster/ec/src/ec-common.h | |
parent | 1b81834b454221a0e4a2b0548cefedc611ff882c (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#1739424
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.h | 2 |
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__ */ |