path: root/xlators/features/leases/src/leases.h
diff options
authorPoornima G <>2016-05-17 01:22:37 -0400
committerPranith Kumar Karampuri <>2016-05-19 02:29:11 -0700
commit84924ee0ef7cb557c54a9d467364ded86b34f40d (patch)
treea5fa0ddbb9093f8dd41ec3601c1952e0ff934f07 /xlators/features/leases/src/leases.h
parent8facd588f20ef8305b6f6b53da0f6d54d300093b (diff)
leases: Send "this" as cookie to the timer handler
Issue: timer-wheel implementation doesn't set the THIS to point to the xlator who registered the timer, before calling the handler. Hence referencing to THIS is any timer handler will point to the global_xlator. Fix: This is a bug from the timer wheel, but until that gets fixed passing "this" as a cookie to the timer handler. Change-Id: Ife1be56dc100372f9211e8fc7a885ac717cbcf47 BUG: 1319992 Signed-off-by: Poornima G <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Raghavendra Talur <> Reviewed-by: Pranith Kumar Karampuri <>
Diffstat (limited to 'xlators/features/leases/src/leases.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/leases/src/leases.h b/xlators/features/leases/src/leases.h
index 16143691075..c779f1a67e7 100644
--- a/xlators/features/leases/src/leases.h
+++ b/xlators/features/leases/src/leases.h
@@ -213,6 +213,12 @@ struct __fop_stub {
typedef struct __fop_stub fop_stub_t;
+struct __lease_timer_data {
+ inode_t *inode;
+ xlator_t *this;
+typedef struct __lease_timer_data lease_timer_data_t;
is_leases_enabled (xlator_t *this);