summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-fops.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-05-20 23:56:17 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-21 06:08:17 -0700
commit0910bab5e5b957e11f356d525eccccfd36d334f9 (patch)
tree6fe365154b34dac20751191720139550d135d280 /xlators/cluster/ec/src/ec-fops.h
parenta61c788de737f81b9c21b176a26e21a078176ed9 (diff)
cluster/ec: Fix use after free crash
ec_heal creates ec_fop_data but doesn't run ec_manager. ec_fop_data_allocate adds this fop to ec->pending_fops, because ec_manager is not run on this heal fop it is never removed from ec->pending_fops. When it is accessed after free it leads to crash. It is better to not to add HEAL fops to ec->pending_fops because we don't want graph switch to hang the mount because of a BIG file/directory heal. BUG: 1188145 Change-Id: I8abdc92f06e0563192300ca4abca3909efcca9c3 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/10868 Reviewed-by: Xavier Hernandez <xhernandez@datalab.es> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-fops.h')
-rw-r--r--xlators/cluster/ec/src/ec-fops.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/cluster/ec/src/ec-fops.h b/xlators/cluster/ec/src/ec-fops.h
index d6b9770f720..7661077cca3 100644
--- a/xlators/cluster/ec/src/ec-fops.h
+++ b/xlators/cluster/ec/src/ec-fops.h
@@ -16,9 +16,6 @@
#include "ec-data.h"
#include "ec-common.h"
-#define EC_FOP_HEAL -1
-#define EC_FOP_FHEAL -2
-
void ec_access(call_frame_t * frame, xlator_t * this, uintptr_t target,
int32_t minimum, fop_access_cbk_t func, void *data, loc_t * loc,
int32_t mask, dict_t * xdata);