From 58465cdca9386fe2fa15049911223f7282e1b412 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 21 Apr 2011 04:16:44 +0000 Subject: features/marker-quota: handle overflow of counter used to set frame->root->lk_owner. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 2804 (Occasional log messages seen indicating failure of inodelk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2804 --- xlators/features/marker/src/marker.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/features/marker/src/marker.c') diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 7b339748bf4..862c0a464aa 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -1889,6 +1889,8 @@ marker_priv_cleanup (xlator_t *this) marker_xtime_priv_cleanup (this); + LOCK_DESTROY (&priv->lock); + GF_FREE (priv); out: return; @@ -1975,6 +1977,8 @@ init (xlator_t *this) priv->feature_enabled = 0; + LOCK_INIT (&priv->lock); + data = dict_get (options, "quota"); if (data) { ret = gf_string2boolean (data->data, &flag); -- cgit