e7a346
From 40d6af4d4c42b1880abcf576a9a9b6e734298ff0 Mon Sep 17 00:00:00 2001
e7a346
From: Mohit Agrawal <moagrawa@redhat.com>
e7a346
Date: Sat, 10 Feb 2018 12:25:15 +0530
e7a346
Subject: [PATCH 225/236] glusterfsd: Memleak in glusterfsd process while 
e7a346
 brick mux is on
e7a346
e7a346
Problem: At the time of stopping the volume while brick multiplex is
e7a346
         enabled memory is not cleanup from all server side xlators.
e7a346
e7a346
Solution: To cleanup memory for all server side xlators call fini
e7a346
          in glusterfs_handle_terminate after send GF_EVENT_CLEANUP
e7a346
          notification to top xlator.
e7a346
e7a346
> BUG: 1544090
e7a346
> (cherry picked from commit 7c3cc485054e4ede1efb358552135b432fb7047a)
e7a346
> (upstream patch review link https://review.gluster.org/#/c/19616/)
e7a346
e7a346
BUG: 1535281
e7a346
Change-Id: Ia10dc7f2605aa50f2b90b3fe4eb380ba9299e2fc
e7a346
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/136216
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
e7a346
---
e7a346
 glusterfsd/src/glusterfsd-mgmt.c                   | 67 ++++++++++++++++++++
e7a346
 glusterfsd/src/glusterfsd.c                        | 13 ----
e7a346
 glusterfsd/src/glusterfsd.h                        |  3 +
e7a346
 xlators/debug/io-stats/src/io-stats.c              |  1 -
e7a346
 xlators/features/bit-rot/src/stub/bit-rot-stub.c   | 22 +++----
e7a346
 .../features/changelog/src/changelog-ev-handle.c   |  8 ++-
e7a346
 .../features/changelog/src/changelog-rpc-common.c  |  4 ++
e7a346
 xlators/features/changelog/src/changelog.c         | 18 ++----
e7a346
 .../changetimerecorder/src/changetimerecorder.c    | 15 ++---
e7a346
 xlators/features/index/src/index.c                 | 21 ++++---
e7a346
 xlators/features/leases/src/leases.c               | 15 +++--
e7a346
 xlators/features/marker/src/marker.c               | 69 ++++++++++++---------
e7a346
 xlators/features/quota/src/quota.c                 | 25 +++++++-
e7a346
 xlators/features/shard/src/shard.c                 |  3 +
e7a346
 xlators/features/trash/src/trash.c                 | 15 ++++-
e7a346
 xlators/features/upcall/src/upcall.c               | 18 +++++-
e7a346
 .../performance/decompounder/src/decompounder.c    |  7 +++
e7a346
 xlators/performance/io-threads/src/io-threads.c    |  6 +-
e7a346
 xlators/protocol/server/src/server-rpc-fops.c      |  7 +++
e7a346
 xlators/protocol/server/src/server.c               |  1 -
e7a346
 xlators/storage/posix/src/posix-handle.h           |  6 ++
e7a346
 xlators/storage/posix/src/posix-helpers.c          |  1 +
e7a346
 xlators/storage/posix/src/posix.c                  | 71 ++++++++++++----------
e7a346
 xlators/system/posix-acl/src/posix-acl.c           |  4 +-
e7a346
 24 files changed, 281 insertions(+), 139 deletions(-)
e7a346
e7a346
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
e7a346
index ef53d09..8f4450b 100644
e7a346
--- a/glusterfsd/src/glusterfsd-mgmt.c
e7a346
+++ b/glusterfsd/src/glusterfsd-mgmt.c
e7a346
@@ -197,6 +197,72 @@ glusterfs_autoscale_threads (glusterfs_ctx_t *ctx, int incr, xlator_t *this)
e7a346
         rpcsvc_ownthread_reconf (conf->rpc, pool->eventthreadcount);
e7a346
 }
e7a346
 
e7a346
+static int
e7a346
+xlator_mem_free (xlator_t *xl)
e7a346
+{
e7a346
+        volume_opt_list_t *vol_opt = NULL;
e7a346
+        volume_opt_list_t *tmp     = NULL;
e7a346
+
e7a346
+        if (!xl)
e7a346
+                return 0;
e7a346
+
e7a346
+        GF_FREE (xl->name);
e7a346
+        GF_FREE (xl->type);
e7a346
+        xl->name = NULL;
e7a346
+        xl->type = NULL;
e7a346
+
e7a346
+        if (xl->options) {
e7a346
+                dict_ref (xl->options);
e7a346
+                dict_unref (xl->options);
e7a346
+                xl->options = NULL;
e7a346
+        }
e7a346
+
e7a346
+        list_for_each_entry_safe (vol_opt, tmp, &xl->volume_options, list) {
e7a346
+                list_del_init (&vol_opt->list);
e7a346
+                GF_FREE (vol_opt);
e7a346
+        }
e7a346
+
e7a346
+        return 0;
e7a346
+}
e7a346
+
e7a346
+void
e7a346
+xlator_call_fini (xlator_t *this) {
e7a346
+        if (!this)
e7a346
+                return;
e7a346
+        xlator_call_fini (this->next);
e7a346
+        this->fini (this);
e7a346
+}
e7a346
+
e7a346
+void
e7a346
+xlator_mem_cleanup (xlator_t *this) {
e7a346
+        xlator_list_t     *list = this->children;
e7a346
+        xlator_t          *trav = list->xlator;
e7a346
+        inode_table_t     *inode_table = NULL;
e7a346
+        xlator_t          *prev = trav;
e7a346
+
e7a346
+        inode_table = this->itable;
e7a346
+
e7a346
+        xlator_call_fini (trav);
e7a346
+
e7a346
+        while (prev) {
e7a346
+                trav = prev->next;
e7a346
+                xlator_mem_free (prev);
e7a346
+                prev = trav;
e7a346
+        }
e7a346
+
e7a346
+        if (inode_table) {
e7a346
+                inode_table_destroy (inode_table);
e7a346
+                this->itable = NULL;
e7a346
+        }
e7a346
+
e7a346
+        if (this->fini) {
e7a346
+                this->fini (this);
e7a346
+        }
e7a346
+
e7a346
+        xlator_mem_free (this);
e7a346
+}
e7a346
+
e7a346
+
e7a346
 int
e7a346
 glusterfs_handle_terminate (rpcsvc_request_t *req)
e7a346
 {
e7a346
@@ -263,6 +329,7 @@ glusterfs_handle_terminate (rpcsvc_request_t *req)
e7a346
                 gf_log (THIS->name, GF_LOG_INFO, "detaching not-only"
e7a346
                          " child %s", xlator_req.name);
e7a346
                 top->notify (top, GF_EVENT_CLEANUP, victim);
e7a346
+                xlator_mem_cleanup (victim);
e7a346
         }
e7a346
 err:
e7a346
         if (!lockflag)
e7a346
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
e7a346
index 3ae89a6..6b7adc4 100644
e7a346
--- a/glusterfsd/src/glusterfsd.c
e7a346
+++ b/glusterfsd/src/glusterfsd.c
e7a346
@@ -1416,20 +1416,7 @@ cleanup_and_exit (int signum)
e7a346
         }
e7a346
 #endif
e7a346
 
e7a346
-        /* call fini() of each xlator */
e7a346
-
e7a346
-        /*call fini for glusterd xlator */
e7a346
-        /* TODO : Invoke fini for rest of the xlators */
e7a346
         trav = NULL;
e7a346
-        if (ctx->active)
e7a346
-                trav = ctx->active->top;
e7a346
-        while (trav) {
e7a346
-                if (should_call_fini(ctx,trav)) {
e7a346
-                        THIS = trav;
e7a346
-                        trav->fini (trav);
e7a346
-                }
e7a346
-                trav = trav->next;
e7a346
-        }
e7a346
 
e7a346
         /* NOTE: Only the least significant 8 bits i.e (signum & 255)
e7a346
            will be available to parent process on calling exit() */
e7a346
diff --git a/glusterfsd/src/glusterfsd.h b/glusterfsd/src/glusterfsd.h
e7a346
index 43cef52..a72acc8 100644
e7a346
--- a/glusterfsd/src/glusterfsd.h
e7a346
+++ b/glusterfsd/src/glusterfsd.h
e7a346
@@ -126,5 +126,8 @@ int glusterfs_volume_top_read_perf (uint32_t blk_size, uint32_t blk_count,
e7a346
 void
e7a346
 glusterfs_autoscale_threads (glusterfs_ctx_t *ctx, int incr, xlator_t *this);
e7a346
 
e7a346
+void
e7a346
+xlator_mem_cleanup (xlator_t *this);
e7a346
+
e7a346
 extern glusterfs_ctx_t *glusterfsd_ctx;
e7a346
 #endif /* __GLUSTERFSD_H__ */
e7a346
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c
e7a346
index a46d116..f46474b 100644
e7a346
--- a/xlators/debug/io-stats/src/io-stats.c
e7a346
+++ b/xlators/debug/io-stats/src/io-stats.c
e7a346
@@ -300,7 +300,6 @@ is_fop_latency_started (call_frame_t *frame)
e7a346
                                                throughput, iosstat);           \
e7a346
         } while (0)
e7a346
 
e7a346
-
e7a346
 static int
e7a346
 ios_fd_ctx_get (fd_t *fd, xlator_t *this, struct ios_fd **iosfd)
e7a346
 {
e7a346
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub.c b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
e7a346
index 4be7caa..05cac63 100644
e7a346
--- a/xlators/features/bit-rot/src/stub/bit-rot-stub.c
e7a346
+++ b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
e7a346
@@ -228,18 +228,6 @@ notify (xlator_t *this, int event, void *data, ...)
e7a346
         if (!priv)
e7a346
                 return 0;
e7a346
 
e7a346
-        switch (event) {
e7a346
-        case GF_EVENT_CLEANUP:
e7a346
-                if (priv->signth) {
e7a346
-                        (void) gf_thread_cleanup_xint (priv->signth);
e7a346
-                        priv->signth = 0;
e7a346
-                }
e7a346
-                if (priv->container.thread) {
e7a346
-                        (void) gf_thread_cleanup_xint (priv->container.thread);
e7a346
-                        priv->container.thread = 0;
e7a346
-                }
e7a346
-                break;
e7a346
-        }
e7a346
         default_notify (this, event, data);
e7a346
         return 0;
e7a346
 }
e7a346
@@ -262,6 +250,7 @@ fini (xlator_t *this)
e7a346
                         "Could not cancel sign serializer thread");
e7a346
                 goto out;
e7a346
         }
e7a346
+        priv->signth = 0;
e7a346
 
e7a346
         while (!list_empty (&priv->squeue)) {
e7a346
                 sigstub = list_first_entry (&priv->squeue,
e7a346
@@ -283,12 +272,19 @@ fini (xlator_t *this)
e7a346
                 goto out;
e7a346
         }
e7a346
 
e7a346
+        priv->container.thread = 0;
e7a346
+
e7a346
         while (!list_empty (&priv->container.bad_queue)) {
e7a346
                 stub = list_first_entry (&priv->container.bad_queue, call_stub_t,
e7a346
                                          list);
e7a346
                 list_del_init (&stub->list);
e7a346
                 call_stub_destroy (stub);
e7a346
-        };
e7a346
+        }
e7a346
+
e7a346
+        if (priv->local_pool) {
e7a346
+                mem_pool_destroy (priv->local_pool);
e7a346
+                priv->local_pool = NULL;
e7a346
+        }
e7a346
 
e7a346
         pthread_mutex_destroy (&priv->container.bad_lock);
e7a346
         pthread_cond_destroy (&priv->container.bad_cond);
e7a346
diff --git a/xlators/features/changelog/src/changelog-ev-handle.c b/xlators/features/changelog/src/changelog-ev-handle.c
e7a346
index 38e127b..3e8dc9a 100644
e7a346
--- a/xlators/features/changelog/src/changelog-ev-handle.c
e7a346
+++ b/xlators/features/changelog/src/changelog-ev-handle.c
e7a346
@@ -163,12 +163,14 @@ changelog_rpc_notify (struct rpc_clnt *rpc,
e7a346
                  */
e7a346
                 rpc_clnt_unref (crpc->rpc);
e7a346
 
e7a346
-                selection = &priv->ev_selection;
e7a346
+                if (priv)
e7a346
+                        selection = &priv->ev_selection;
e7a346
 
e7a346
                 LOCK (&crpc->lock);
e7a346
                 {
e7a346
-                        changelog_deselect_event (this, selection,
e7a346
-                                                  crpc->filter);
e7a346
+                        if (selection)
e7a346
+                                changelog_deselect_event (this, selection,
e7a346
+                                                          crpc->filter);
e7a346
                         changelog_set_disconnect_flag (crpc, _gf_true);
e7a346
                 }
e7a346
                 UNLOCK (&crpc->lock);
e7a346
diff --git a/xlators/features/changelog/src/changelog-rpc-common.c b/xlators/features/changelog/src/changelog-rpc-common.c
e7a346
index 08cd41e..21bef76 100644
e7a346
--- a/xlators/features/changelog/src/changelog-rpc-common.c
e7a346
+++ b/xlators/features/changelog/src/changelog-rpc-common.c
e7a346
@@ -275,6 +275,10 @@ changelog_rpc_server_destroy (xlator_t *this, rpcsvc_t *rpc, char *sockfile,
e7a346
 
e7a346
         (void) rpcsvc_unregister_notify (rpc, fn, this);
e7a346
         sys_unlink (sockfile);
e7a346
+        if (rpc->rxpool) {
e7a346
+                mem_pool_destroy (rpc->rxpool);
e7a346
+                rpc->rxpool = NULL;
e7a346
+        }
e7a346
 
e7a346
         GF_FREE (rpc);
e7a346
 }
e7a346
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
e7a346
index 8b22a04..a472208 100644
e7a346
--- a/xlators/features/changelog/src/changelog.c
e7a346
+++ b/xlators/features/changelog/src/changelog.c
e7a346
@@ -2110,20 +2110,6 @@ notify (xlator_t *this, int event, void *data, ...)
e7a346
         if (!priv)
e7a346
                 goto out;
e7a346
 
e7a346
-        if (event == GF_EVENT_CLEANUP) {
e7a346
-                if (priv->connector) {
e7a346
-                        (void) gf_thread_cleanup_xint (priv->connector);
e7a346
-                        priv->connector = 0;
e7a346
-                }
e7a346
-
e7a346
-                for (; i < NR_DISPATCHERS; i++) {
e7a346
-                        if (priv->ev_dispatcher[i]) {
e7a346
-                                (void) gf_thread_cleanup_xint (priv->ev_dispatcher[i]);
e7a346
-                                priv->ev_dispatcher[i] = 0;
e7a346
-                        }
e7a346
-               }
e7a346
-        }
e7a346
-
e7a346
         if (event == GF_EVENT_TRANSLATOR_OP) {
e7a346
 
e7a346
                 dict = data;
e7a346
@@ -2901,6 +2887,9 @@ fini (xlator_t *this)
e7a346
                 /* cleanup barrier related objects */
e7a346
                 changelog_barrier_pthread_destroy (priv);
e7a346
 
e7a346
+                /* cleanup helper threads */
e7a346
+                changelog_cleanup_helper_threads (this, priv);
e7a346
+
e7a346
                 /* cleanup allocated options */
e7a346
                 changelog_freeup_options (this, priv);
e7a346
 
e7a346
@@ -2911,6 +2900,7 @@ fini (xlator_t *this)
e7a346
         }
e7a346
 
e7a346
         this->private = NULL;
e7a346
+        this->local_pool = NULL;
e7a346
 
e7a346
         return;
e7a346
 }
e7a346
diff --git a/xlators/features/changetimerecorder/src/changetimerecorder.c b/xlators/features/changetimerecorder/src/changetimerecorder.c
e7a346
index 99519d1..5f82d33 100644
e7a346
--- a/xlators/features/changetimerecorder/src/changetimerecorder.c
e7a346
+++ b/xlators/features/changetimerecorder/src/changetimerecorder.c
e7a346
@@ -19,7 +19,6 @@
e7a346
 #include "tier-ctr-interface.h"
e7a346
 
e7a346
 /*******************************inode forget***********************************/
e7a346
-
e7a346
 int
e7a346
 ctr_forget (xlator_t *this, inode_t *inode)
e7a346
 {
e7a346
@@ -2310,15 +2309,6 @@ notify (xlator_t *this, int event, void *data, ...)
e7a346
        if (!priv)
e7a346
                goto out;
e7a346
 
e7a346
-       if (event == GF_EVENT_CLEANUP) {
e7a346
-               if (fini_db (priv->_db_conn)) {
e7a346
-                       gf_msg (this->name, GF_LOG_WARNING, 0,
e7a346
-                                CTR_MSG_CLOSE_DB_CONN_FAILED, "Failed closing "
e7a346
-                                "db connection");
e7a346
-               }
e7a346
-               if (priv->_db_conn)
e7a346
-                        priv->_db_conn = NULL;
e7a346
-       }
e7a346
        ret = default_notify (this, event, data);
e7a346
 
e7a346
 out:
e7a346
@@ -2359,6 +2349,10 @@ fini (xlator_t *this)
e7a346
                                 CTR_MSG_CLOSE_DB_CONN_FAILED, "Failed closing "
e7a346
                                 "db connection");
e7a346
                 }
e7a346
+
e7a346
+                if (priv->_db_conn)
e7a346
+                        priv->_db_conn = NULL;
e7a346
+
e7a346
                 GF_FREE (priv->ctr_db_path);
e7a346
                 if (pthread_mutex_destroy (&priv->compact_lock)) {
e7a346
                         gf_msg (this->name, GF_LOG_WARNING, 0,
e7a346
@@ -2368,6 +2362,7 @@ fini (xlator_t *this)
e7a346
         }
e7a346
         GF_FREE (priv);
e7a346
         mem_pool_destroy (this->local_pool);
e7a346
+        this->local_pool = NULL;
e7a346
 
e7a346
         return;
e7a346
 }
e7a346
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
e7a346
index 8590482..f3b0270 100644
e7a346
--- a/xlators/features/index/src/index.c
e7a346
+++ b/xlators/features/index/src/index.c
e7a346
@@ -2444,6 +2444,13 @@ fini (xlator_t *this)
e7a346
         priv = this->private;
e7a346
         if (!priv)
e7a346
                 goto out;
e7a346
+
e7a346
+        priv->down = _gf_true;
e7a346
+        pthread_cond_broadcast (&priv->cond);
e7a346
+        if (priv->thread) {
e7a346
+                gf_thread_cleanup_xint (priv->thread);
e7a346
+                priv->thread = 0;
e7a346
+        }
e7a346
         this->private = NULL;
e7a346
         LOCK_DESTROY (&priv->lock);
e7a346
         pthread_cond_destroy (&priv->cond);
e7a346
@@ -2455,8 +2462,11 @@ fini (xlator_t *this)
e7a346
         if (priv->complete_watchlist)
e7a346
                 dict_unref (priv->complete_watchlist);
e7a346
         GF_FREE (priv);
e7a346
-        mem_pool_destroy (this->local_pool);
e7a346
-        this->local_pool = NULL;
e7a346
+
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
 out:
e7a346
         return;
e7a346
 }
e7a346
@@ -2526,13 +2536,6 @@ notify (xlator_t *this, int event, void *data, ...)
e7a346
         if (!priv)
e7a346
                 return 0;
e7a346
 
e7a346
-        switch (event) {
e7a346
-        case GF_EVENT_CLEANUP:
e7a346
-                priv->down = _gf_true;
e7a346
-                pthread_cond_broadcast (&priv->cond);
e7a346
-                break;
e7a346
-        }
e7a346
-
e7a346
         ret = default_notify (this, event, data);
e7a346
         return ret;
e7a346
 }
e7a346
diff --git a/xlators/features/leases/src/leases.c b/xlators/features/leases/src/leases.c
e7a346
index 551dd9b..a8ffb35 100644
e7a346
--- a/xlators/features/leases/src/leases.c
e7a346
+++ b/xlators/features/leases/src/leases.c
e7a346
@@ -1062,14 +1062,17 @@ fini (xlator_t *this)
e7a346
 
e7a346
         priv->fini = _gf_true;
e7a346
         pthread_cond_broadcast (&priv->cond);
e7a346
-        pthread_join (priv->recall_thr, NULL);
e7a346
-
e7a346
-        priv->inited_recall_thr = _gf_false;
e7a346
+        if (priv->recall_thr) {
e7a346
+                gf_thread_cleanup_xint (priv->recall_thr);
e7a346
+                priv->recall_thr = 0;
e7a346
+                priv->inited_recall_thr = _gf_false;
e7a346
+        }
e7a346
 
e7a346
         GF_FREE (priv);
e7a346
-
e7a346
-        glusterfs_ctx_tw_put (this->ctx);
e7a346
-
e7a346
+        if (this->ctx->tw) {
e7a346
+                glusterfs_ctx_tw_put (this->ctx);
e7a346
+                this->ctx->tw = NULL;
e7a346
+        }
e7a346
         return 0;
e7a346
 }
e7a346
 
e7a346
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
e7a346
index b51b9cc..3094c68 100644
e7a346
--- a/xlators/features/marker/src/marker.c
e7a346
+++ b/xlators/features/marker/src/marker.c
e7a346
@@ -3193,9 +3193,9 @@ mem_acct_init (xlator_t *this)
e7a346
 int32_t
e7a346
 init_xtime_priv (xlator_t *this, dict_t *options)
e7a346
 {
e7a346
-        data_t          *data    = NULL;
e7a346
         int32_t          ret     = -1;
e7a346
         marker_conf_t   *priv    = NULL;
e7a346
+        char            *tmp_opt = NULL;
e7a346
 
e7a346
         GF_VALIDATE_OR_GOTO ("marker", this, out);
e7a346
         GF_VALIDATE_OR_GOTO (this->name, options, out);
e7a346
@@ -3203,29 +3203,11 @@ init_xtime_priv (xlator_t *this, dict_t *options)
e7a346
 
e7a346
         priv = this->private;
e7a346
 
e7a346
-        if((data = dict_get (options, VOLUME_UUID)) != NULL) {
e7a346
-                priv->volume_uuid = data->data;
e7a346
+        ret = dict_get_str (options, "volume-uuid", &tmp_opt);
e7a346
 
e7a346
-                ret = gf_uuid_parse (priv->volume_uuid, priv->volume_uuid_bin);
e7a346
-                if (ret == -1) {
e7a346
-                        gf_log (this->name, GF_LOG_ERROR,
e7a346
-                                "invalid volume uuid %s", priv->volume_uuid);
e7a346
-                        goto out;
e7a346
-                }
e7a346
-
e7a346
-                ret = gf_asprintf (& (priv->marker_xattr), "%s.%s.%s",
e7a346
-                                   MARKER_XATTR_PREFIX, priv->volume_uuid,
e7a346
-                                   XTIME);
e7a346
-
e7a346
-                if (ret == -1){
e7a346
-                        priv->marker_xattr = NULL;
e7a346
-                        goto out;
e7a346
-                }
e7a346
-
e7a346
-                gf_log (this->name, GF_LOG_DEBUG,
e7a346
-                        "volume-uuid = %s", priv->volume_uuid);
e7a346
-        } else {
e7a346
+        if (ret) {
e7a346
                 priv->volume_uuid = NULL;
e7a346
+                tmp_opt = "";
e7a346
 
e7a346
                 gf_log (this->name, GF_LOG_ERROR,
e7a346
                         "please specify the volume-uuid"
e7a346
@@ -3233,16 +3215,32 @@ init_xtime_priv (xlator_t *this, dict_t *options)
e7a346
 
e7a346
                 return -1;
e7a346
         }
e7a346
+        gf_asprintf (&priv->volume_uuid, "%s", tmp_opt);
e7a346
 
e7a346
-        if ((data = dict_get (options, TIMESTAMP_FILE)) != NULL) {
e7a346
-                priv->timestamp_file = data->data;
e7a346
+        ret = gf_uuid_parse (priv->volume_uuid, priv->volume_uuid_bin);
e7a346
 
e7a346
-                gf_log (this->name, GF_LOG_DEBUG,
e7a346
-                        "the timestamp-file is = %s",
e7a346
-                        priv->timestamp_file);
e7a346
+        if (ret == -1) {
e7a346
+                gf_log (this->name, GF_LOG_ERROR,
e7a346
+                        "invalid volume uuid %s", priv->volume_uuid);
e7a346
+                goto out;
e7a346
+        }
e7a346
 
e7a346
-        } else {
e7a346
+        ret = gf_asprintf (&(priv->marker_xattr), "%s.%s.%s",
e7a346
+                           MARKER_XATTR_PREFIX, priv->volume_uuid,
e7a346
+                           XTIME);
e7a346
+
e7a346
+        if (ret == -1) {
e7a346
+                priv->marker_xattr = NULL;
e7a346
+                goto out;
e7a346
+        }
e7a346
+
e7a346
+        gf_log (this->name, GF_LOG_DEBUG,
e7a346
+                "volume-uuid = %s", priv->volume_uuid);
e7a346
+
e7a346
+        ret = dict_get_str (options, "timestamp-file", &tmp_opt);
e7a346
+        if (ret) {
e7a346
                 priv->timestamp_file = NULL;
e7a346
+                tmp_opt = "";
e7a346
 
e7a346
                 gf_log (this->name, GF_LOG_ERROR,
e7a346
                         "please specify the timestamp-file"
e7a346
@@ -3251,6 +3249,15 @@ init_xtime_priv (xlator_t *this, dict_t *options)
e7a346
                 goto out;
e7a346
         }
e7a346
 
e7a346
+        ret = gf_asprintf (&priv->timestamp_file, "%s", tmp_opt);
e7a346
+        if (ret == -1) {
e7a346
+                priv->timestamp_file = NULL;
e7a346
+                goto out;
e7a346
+        }
e7a346
+
e7a346
+        gf_log (this->name, GF_LOG_DEBUG,
e7a346
+                "the timestamp-file is = %s", priv->timestamp_file);
e7a346
+
e7a346
         ret = 0;
e7a346
 out:
e7a346
         return ret;
e7a346
@@ -3292,6 +3299,12 @@ marker_priv_cleanup (xlator_t *this)
e7a346
         LOCK_DESTROY (&priv->lock);
e7a346
 
e7a346
         GF_FREE (priv);
e7a346
+
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
+
e7a346
 out:
e7a346
         return;
e7a346
 }
e7a346
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
e7a346
index af7b65a..c4817bc 100644
e7a346
--- a/xlators/features/quota/src/quota.c
e7a346
+++ b/xlators/features/quota/src/quota.c
e7a346
@@ -5221,12 +5221,14 @@ quota_priv_dump (xlator_t *this)
e7a346
         GF_ASSERT (this);
e7a346
 
e7a346
         priv = this->private;
e7a346
+        if (!priv)
e7a346
+                goto out;
e7a346
 
e7a346
         gf_proc_dump_add_section ("xlators.features.quota.priv", this->name);
e7a346
 
e7a346
         ret = TRY_LOCK (&priv->lock);
e7a346
         if (ret)
e7a346
-             goto out;
e7a346
+                goto out;
e7a346
         else {
e7a346
                 gf_proc_dump_write("soft-timeout", "%d", priv->soft_timeout);
e7a346
                 gf_proc_dump_write("hard-timeout", "%d", priv->hard_timeout);
e7a346
@@ -5246,6 +5248,27 @@ out:
e7a346
 void
e7a346
 fini (xlator_t *this)
e7a346
 {
e7a346
+        quota_priv_t *priv = NULL;
e7a346
+        rpc_clnt_t   *rpc  = NULL;
e7a346
+        int           i = 0, cnt = 0;
e7a346
+
e7a346
+        priv = this->private;
e7a346
+        if (!priv)
e7a346
+                return;
e7a346
+        rpc = priv->rpc_clnt;
e7a346
+        priv->rpc_clnt = NULL;
e7a346
+        this->private = NULL;
e7a346
+        if (rpc) {
e7a346
+                cnt = GF_ATOMIC_GET (rpc->refcount);
e7a346
+                for (i = 0; i < cnt; i++)
e7a346
+                        rpc_clnt_unref (rpc);
e7a346
+        }
e7a346
+        LOCK_DESTROY (&priv->lock);
e7a346
+        GF_FREE (priv);
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
         return;
e7a346
 }
e7a346
 
e7a346
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
e7a346
index 945458e..29989d3 100644
e7a346
--- a/xlators/features/shard/src/shard.c
e7a346
+++ b/xlators/features/shard/src/shard.c
e7a346
@@ -5514,6 +5514,9 @@ shard_forget (xlator_t *this, inode_t *inode)
e7a346
         shard_priv_t       *priv     = NULL;
e7a346
 
e7a346
         priv = this->private;
e7a346
+        if (!priv)
e7a346
+                return 0;
e7a346
+
e7a346
         inode_ctx_del (inode, this, &ctx_uint);
e7a346
         if (!ctx_uint)
e7a346
                 return 0;
e7a346
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c
e7a346
index 4a41a14..d114858 100644
e7a346
--- a/xlators/features/trash/src/trash.c
e7a346
+++ b/xlators/features/trash/src/trash.c
e7a346
@@ -33,7 +33,6 @@ trash_unlink_rename_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
e7a346
                          struct iatt *preoldparent, struct iatt *postoldparent,
e7a346
                          struct iatt *prenewparent, struct iatt *postnewparent,
e7a346
                          dict_t *xdata);
e7a346
-
e7a346
 /* Common routines used in this translator */
e7a346
 
e7a346
 /**
e7a346
@@ -2406,6 +2405,7 @@ notify (xlator_t *this, int event, void *data, ...)
e7a346
                         ret = create_internalop_directory (this);
e7a346
 
e7a346
         }
e7a346
+
e7a346
 out:
e7a346
         ret = default_notify (this, event, data);
e7a346
         if (ret)
e7a346
@@ -2587,10 +2587,11 @@ void
e7a346
 fini (xlator_t *this)
e7a346
 {
e7a346
         trash_private_t *priv = NULL;
e7a346
+        inode_table_t     *inode_table = NULL;
e7a346
 
e7a346
         GF_VALIDATE_OR_GOTO ("trash", this, out);
e7a346
         priv = this->private;
e7a346
-
e7a346
+        inode_table = priv->trash_itable;
e7a346
         if (priv) {
e7a346
                 if (priv->newtrash_dir)
e7a346
                         GF_FREE (priv->newtrash_dir);
e7a346
@@ -2600,9 +2601,17 @@ fini (xlator_t *this)
e7a346
                         GF_FREE (priv->brick_path);
e7a346
                 if (priv->eliminate)
e7a346
                         wipe_eliminate_path (&priv->eliminate);
e7a346
+                if (inode_table) {
e7a346
+                        inode_table_destroy (inode_table);
e7a346
+                        priv->trash_itable = NULL;
e7a346
+                }
e7a346
                 GF_FREE (priv);
e7a346
         }
e7a346
-        mem_pool_destroy (this->local_pool);
e7a346
+
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
         this->private = NULL;
e7a346
 out:
e7a346
         return;
e7a346
diff --git a/xlators/features/upcall/src/upcall.c b/xlators/features/upcall/src/upcall.c
e7a346
index 3e1d307..66d22f6 100644
e7a346
--- a/xlators/features/upcall/src/upcall.c
e7a346
+++ b/xlators/features/upcall/src/upcall.c
e7a346
@@ -2447,8 +2447,11 @@ fini (xlator_t *this)
e7a346
 
e7a346
         priv->fini = 1;
e7a346
 
e7a346
-        if (priv->reaper_init_done)
e7a346
-                pthread_join (priv->reaper_thr, NULL);
e7a346
+        if (priv->reaper_thr) {
e7a346
+                gf_thread_cleanup_xint (priv->reaper_thr);
e7a346
+                priv->reaper_thr = 0;
e7a346
+                priv->reaper_init_done = _gf_false;
e7a346
+        }
e7a346
 
e7a346
         dict_unref (priv->xattrs);
e7a346
         LOCK_DESTROY (&priv->inode_ctx_lk);
e7a346
@@ -2458,13 +2461,24 @@ fini (xlator_t *this)
e7a346
          * before calling xlator_fini */
e7a346
         GF_FREE (priv);
e7a346
 
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
+
e7a346
         return 0;
e7a346
 }
e7a346
 
e7a346
 int
e7a346
 upcall_forget (xlator_t *this, inode_t *inode)
e7a346
 {
e7a346
+        upcall_private_t *priv          = this->private;
e7a346
+
e7a346
+        if (!priv)
e7a346
+                goto out;
e7a346
+
e7a346
         upcall_cleanup_inode_ctx (this, inode);
e7a346
+out:
e7a346
         return 0;
e7a346
 }
e7a346
 
e7a346
diff --git a/xlators/performance/decompounder/src/decompounder.c b/xlators/performance/decompounder/src/decompounder.c
e7a346
index d3d9b9f..095a300 100644
e7a346
--- a/xlators/performance/decompounder/src/decompounder.c
e7a346
+++ b/xlators/performance/decompounder/src/decompounder.c
e7a346
@@ -946,5 +946,12 @@ out:
e7a346
 int32_t
e7a346
 fini (xlator_t *this)
e7a346
 {
e7a346
+        if (!this)
e7a346
+                return 0;
e7a346
+
e7a346
+        if (this->local_pool) {
e7a346
+                mem_pool_destroy (this->local_pool);
e7a346
+                this->local_pool = NULL;
e7a346
+        }
e7a346
         return 0;
e7a346
 }
e7a346
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
e7a346
index 7c020e2..1e1816a 100644
e7a346
--- a/xlators/performance/io-threads/src/io-threads.c
e7a346
+++ b/xlators/performance/io-threads/src/io-threads.c
e7a346
@@ -356,7 +356,8 @@ iot_schedule (call_frame_t *frame, xlator_t *this, call_stub_t *stub)
e7a346
 out:
e7a346
         gf_msg_debug (this->name, 0, "%s scheduled as %s fop",
e7a346
                       gf_fop_list[stub->fop], iot_get_pri_meaning (pri));
e7a346
-        ret = do_iot_schedule (this->private, stub, pri);
e7a346
+        if (this->private)
e7a346
+                ret = do_iot_schedule (this->private, stub, pri);
e7a346
         return ret;
e7a346
 }
e7a346
 
e7a346
@@ -1073,8 +1074,7 @@ notify (xlator_t *this, int32_t event, void *data, ...)
e7a346
 {
e7a346
         iot_conf_t *conf = this->private;
e7a346
 
e7a346
-        if ((GF_EVENT_PARENT_DOWN == event) ||
e7a346
-            (GF_EVENT_CLEANUP == event))
e7a346
+        if (GF_EVENT_PARENT_DOWN == event)
e7a346
                 iot_exit_threads (conf);
e7a346
 
e7a346
         default_notify (this, event, data);
e7a346
diff --git a/xlators/protocol/server/src/server-rpc-fops.c b/xlators/protocol/server/src/server-rpc-fops.c
e7a346
index 21f78a3..91d5c03 100644
e7a346
--- a/xlators/protocol/server/src/server-rpc-fops.c
e7a346
+++ b/xlators/protocol/server/src/server-rpc-fops.c
e7a346
@@ -3487,6 +3487,13 @@ rpc_receive_common (rpcsvc_request_t *req, call_frame_t **fr,
e7a346
                 SERVER_REQ_SET_ERROR (req, ret);
e7a346
                 goto out;
e7a346
         }
e7a346
+
e7a346
+        if (!(*fr)->root->client->bound_xl->itable) {
e7a346
+                /* inode_table is not allocated successful in server_setvolume */
e7a346
+                SERVER_REQ_SET_ERROR (req, ret);
e7a346
+                goto out;
e7a346
+        }
e7a346
+
e7a346
         ret = 0;
e7a346
 
e7a346
 out:
e7a346
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
e7a346
index 89fde39..737bb96 100644
e7a346
--- a/xlators/protocol/server/src/server.c
e7a346
+++ b/xlators/protocol/server/src/server.c
e7a346
@@ -1578,7 +1578,6 @@ notify (xlator_t *this, int32_t event, void *data, ...)
e7a346
                                                      victim->name);
e7a346
                         /* we need the protocol/server xlator here as 'this' */
e7a346
                         glusterfs_autoscale_threads (ctx, -1, this);
e7a346
-                        default_notify (victim, GF_EVENT_CLEANUP, data);
e7a346
                 }
e7a346
                 break;
e7a346
 
e7a346
diff --git a/xlators/storage/posix/src/posix-handle.h b/xlators/storage/posix/src/posix-handle.h
e7a346
index a40feb5..cb1f84e 100644
e7a346
--- a/xlators/storage/posix/src/posix-handle.h
e7a346
+++ b/xlators/storage/posix/src/posix-handle.h
e7a346
@@ -180,6 +180,12 @@
e7a346
 
e7a346
 
e7a346
 #define MAKE_INODE_HANDLE(rpath, this, loc, iatt_p) do {                \
e7a346
+        if (!this->private) {                                           \
e7a346
+                gf_msg ("make_inode_handle", GF_LOG_ERROR, 0,           \
e7a346
+                         P_MSG_INODE_HANDLE_CREATE,                     \
e7a346
+                         "private is NULL, fini is already called");    \
e7a346
+                break;                                                  \
e7a346
+        }                                                               \
e7a346
         if (gf_uuid_is_null (loc->gfid)) {                              \
e7a346
                 gf_msg (this->name, GF_LOG_ERROR, 0,                    \
e7a346
                         P_MSG_INODE_HANDLE_CREATE,                      \
e7a346
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
e7a346
index 4107265..334175d 100644
e7a346
--- a/xlators/storage/posix/src/posix-helpers.c
e7a346
+++ b/xlators/storage/posix/src/posix-helpers.c
e7a346
@@ -1972,6 +1972,7 @@ abort:
e7a346
                         gf_log (THIS->name, GF_LOG_INFO, "detaching not-only "
e7a346
                                 " child %s", priv->base_path);
e7a346
                         top->notify (top, GF_EVENT_CLEANUP, victim);
e7a346
+                        xlator_mem_cleanup (victim);
e7a346
                 }
e7a346
         }
e7a346
 
e7a346
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
e7a346
index d1ef8a2..74ee98f 100644
e7a346
--- a/xlators/storage/posix/src/posix.c
e7a346
+++ b/xlators/storage/posix/src/posix.c
e7a346
@@ -172,6 +172,8 @@ posix_forget (xlator_t *this, inode_t *inode)
e7a346
         struct posix_private   *priv_posix  = NULL;
e7a346
 
e7a346
         priv_posix = (struct posix_private *) this->private;
e7a346
+        if (!priv_posix)
e7a346
+                return 0;
e7a346
 
e7a346
         ret = inode_ctx_del (inode, this, &ctx_uint);
e7a346
         if (!ctx_uint)
e7a346
@@ -226,6 +228,7 @@ posix_lookup (call_frame_t *frame, xlator_t *this,
e7a346
         VALIDATE_OR_GOTO (frame, out);
e7a346
         VALIDATE_OR_GOTO (this, out);
e7a346
         VALIDATE_OR_GOTO (loc, out);
e7a346
+        VALIDATE_OR_GOTO (this->private, out);
e7a346
 
e7a346
         priv = this->private;
e7a346
 
e7a346
@@ -1304,6 +1307,8 @@ posix_releasedir (xlator_t *this,
e7a346
         }
e7a346
 
e7a346
         priv = this->private;
e7a346
+        if (!priv)
e7a346
+                goto out;
e7a346
 
e7a346
         pthread_mutex_lock (&priv->janitor_lock);
e7a346
         {
e7a346
@@ -2103,6 +2108,7 @@ posix_unlink (call_frame_t *frame, xlator_t *this,
e7a346
         VALIDATE_OR_GOTO (frame, out);
e7a346
         VALIDATE_OR_GOTO (this, out);
e7a346
         VALIDATE_OR_GOTO (loc, out);
e7a346
+        VALIDATE_OR_GOTO (this->private, out);
e7a346
 
e7a346
         SET_FS_ID (frame->root->uid, frame->root->gid);
e7a346
         MAKE_ENTRY_HANDLE (real_path, par_path, this, loc, &stbuf);
e7a346
@@ -3880,6 +3886,8 @@ posix_release (xlator_t *this, fd_t *fd)
e7a346
                         "pfd->dir is %p (not NULL) for file fd=%p",
e7a346
                         pfd->dir, fd);
e7a346
         }
e7a346
+        if (!priv)
e7a346
+                goto out;
e7a346
 
e7a346
         pthread_mutex_lock (&priv->janitor_lock);
e7a346
         {
e7a346
@@ -4067,6 +4075,7 @@ posix_setxattr (call_frame_t *frame, xlator_t *this,
e7a346
 
e7a346
         VALIDATE_OR_GOTO (frame, out);
e7a346
         VALIDATE_OR_GOTO (this, out);
e7a346
+        VALIDATE_OR_GOTO (this->private, out);
e7a346
         VALIDATE_OR_GOTO (loc, out);
e7a346
         VALIDATE_OR_GOTO (dict, out);
e7a346
 
e7a346
@@ -4650,6 +4659,7 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,
e7a346
         VALIDATE_OR_GOTO (frame, out);
e7a346
         VALIDATE_OR_GOTO (this, out);
e7a346
         VALIDATE_OR_GOTO (loc, out);
e7a346
+        VALIDATE_OR_GOTO (this->private, out);
e7a346
 
e7a346
         SET_FS_ID (frame->root->uid, frame->root->gid);
e7a346
         MAKE_INODE_HANDLE (real_path, this, loc, NULL);
e7a346
@@ -4757,11 +4767,12 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,
e7a346
                 goto done;
e7a346
         }
e7a346
         if (loc->inode && name && (XATTR_IS_PATHINFO (name))) {
e7a346
-                if (LOC_HAS_ABSPATH (loc))
e7a346
+                VALIDATE_OR_GOTO (this->private, out);
e7a346
+                if (LOC_HAS_ABSPATH (loc)) {
e7a346
                         MAKE_REAL_PATH (rpath, this, loc->path);
e7a346
-                else
e7a346
+                } else {
e7a346
                         rpath = real_path;
e7a346
-
e7a346
+                }
e7a346
                 (void) snprintf (host_buf, sizeof(host_buf),
e7a346
                                  "<POSIX(%s):%s:%s>", priv->base_path,
e7a346
                                  ((priv->node_uuid_pathinfo
e7a346
@@ -7018,9 +7029,6 @@ notify (xlator_t *this,
e7a346
         void *data,
e7a346
         ...)
e7a346
 {
e7a346
-        struct posix_private *priv = NULL;
e7a346
-
e7a346
-        priv = this->private;
e7a346
         switch (event)
e7a346
         {
e7a346
         case GF_EVENT_PARENT_UP:
e7a346
@@ -7029,31 +7037,6 @@ notify (xlator_t *this,
e7a346
                 default_notify (this, GF_EVENT_CHILD_UP, data);
e7a346
         }
e7a346
         break;
e7a346
-        case GF_EVENT_CLEANUP:
e7a346
-                if (priv->health_check) {
e7a346
-                        priv->health_check_active = _gf_false;
e7a346
-                        pthread_cancel (priv->health_check);
e7a346
-                        priv->health_check = 0;
e7a346
-                }
e7a346
-                if (priv->disk_space_check) {
e7a346
-                        priv->disk_space_check_active = _gf_false;
e7a346
-                        pthread_cancel (priv->disk_space_check);
e7a346
-                        priv->disk_space_check = 0;
e7a346
-                }
e7a346
-                if (priv->janitor) {
e7a346
-                        (void) gf_thread_cleanup_xint (priv->janitor);
e7a346
-                        priv->janitor = 0;
e7a346
-                }
e7a346
-                if (priv->fsyncer) {
e7a346
-                        (void) gf_thread_cleanup_xint (priv->fsyncer);
e7a346
-                        priv->fsyncer = 0;
e7a346
-                }
e7a346
-                if (priv->mount_lock) {
e7a346
-                        (void) sys_closedir (priv->mount_lock);
e7a346
-                        priv->mount_lock = NULL;
e7a346
-                }
e7a346
-
e7a346
-        break;
e7a346
         default:
e7a346
                 /* */
e7a346
                 break;
e7a346
@@ -7917,10 +7900,36 @@ fini (xlator_t *this)
e7a346
         if (!priv)
e7a346
                 return;
e7a346
         this->private = NULL;
e7a346
+        if (priv->health_check) {
e7a346
+                priv->health_check_active = _gf_false;
e7a346
+                pthread_cancel (priv->health_check);
e7a346
+                priv->health_check = 0;
e7a346
+        }
e7a346
+        if (priv->disk_space_check) {
e7a346
+                priv->disk_space_check_active = _gf_false;
e7a346
+                pthread_cancel (priv->disk_space_check);
e7a346
+                priv->disk_space_check = 0;
e7a346
+        }
e7a346
+        if (priv->janitor) {
e7a346
+                (void) gf_thread_cleanup_xint (priv->janitor);
e7a346
+                priv->janitor = 0;
e7a346
+        }
e7a346
+        if (priv->fsyncer) {
e7a346
+                (void) gf_thread_cleanup_xint (priv->fsyncer);
e7a346
+                priv->fsyncer = 0;
e7a346
+        }
e7a346
         /*unlock brick dir*/
e7a346
         if (priv->mount_lock)
e7a346
                 (void) sys_closedir (priv->mount_lock);
e7a346
+
e7a346
+        GF_FREE (priv->base_path);
e7a346
+        LOCK_DESTROY (&priv->lock);
e7a346
+        pthread_mutex_destroy (&priv->janitor_lock);
e7a346
+        pthread_mutex_destroy (&priv->fsync_mutex);
e7a346
+        GF_FREE (priv->hostname);
e7a346
+        GF_FREE (priv->trash_path);
e7a346
         GF_FREE (priv);
e7a346
+
e7a346
         return;
e7a346
 }
e7a346
 struct xlator_dumpops dumpops = {
e7a346
diff --git a/xlators/system/posix-acl/src/posix-acl.c b/xlators/system/posix-acl/src/posix-acl.c
e7a346
index 5dac688..aadd6fc 100644
e7a346
--- a/xlators/system/posix-acl/src/posix-acl.c
e7a346
+++ b/xlators/system/posix-acl/src/posix-acl.c
e7a346
@@ -582,13 +582,15 @@ posix_acl_unref (xlator_t *this, struct posix_acl *acl)
e7a346
         int                     refcnt = 0;
e7a346
 
e7a346
         conf = this->private;
e7a346
+        if (!conf)
e7a346
+                goto out;
e7a346
 
e7a346
         LOCK(&conf->acl_lock);
e7a346
         {
e7a346
                 refcnt = --acl->refcnt;
e7a346
         }
e7a346
         UNLOCK(&conf->acl_lock);
e7a346
-
e7a346
+out:
e7a346
         if (!refcnt)
e7a346
                 posix_acl_destroy (this, acl);
e7a346
 }
e7a346
-- 
e7a346
1.8.3.1
e7a346