|
|
14f8ab |
From 21f376939f03f91214218c485e7d3a2848dae4b2 Mon Sep 17 00:00:00 2001
|
|
|
14f8ab |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
14f8ab |
Date: Thu, 11 Jul 2019 12:43:44 +0530
|
|
|
14f8ab |
Subject: [PATCH 231/255] Revert "graph/shd: Use top down approach while
|
|
|
14f8ab |
cleaning xlator"
|
|
|
14f8ab |
|
|
|
14f8ab |
This reverts commit b963fa8bb71963127147d33bf609f439dd5bd107.
|
|
|
14f8ab |
|
|
|
14f8ab |
Label : DOWNSTREAM ONLY
|
|
|
14f8ab |
|
|
|
14f8ab |
BUG: 1471742
|
|
|
14f8ab |
Change-Id: Ifb8056395c5988cf7c484891bea052f5415bf9da
|
|
|
14f8ab |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
14f8ab |
Reviewed-on: https://code.engineering.redhat.com/gerrit/175941
|
|
|
14f8ab |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
14f8ab |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
14f8ab |
---
|
|
|
14f8ab |
libglusterfs/src/graph.c | 10 +---------
|
|
|
14f8ab |
xlators/features/bit-rot/src/stub/bit-rot-stub.c | 1 -
|
|
|
14f8ab |
xlators/features/changelog/src/changelog.c | 1 -
|
|
|
14f8ab |
xlators/features/cloudsync/src/cloudsync.c | 4 +---
|
|
|
14f8ab |
xlators/features/index/src/index.c | 1 -
|
|
|
14f8ab |
xlators/features/quiesce/src/quiesce.c | 1 -
|
|
|
14f8ab |
xlators/features/read-only/src/worm.c | 1 -
|
|
|
14f8ab |
xlators/features/sdfs/src/sdfs.c | 1 -
|
|
|
14f8ab |
xlators/features/selinux/src/selinux.c | 2 --
|
|
|
14f8ab |
xlators/features/trash/src/trash.c | 1 -
|
|
|
14f8ab |
10 files changed, 2 insertions(+), 21 deletions(-)
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
|
|
|
14f8ab |
index 172dc61..5b95fd6 100644
|
|
|
14f8ab |
--- a/libglusterfs/src/graph.c
|
|
|
14f8ab |
+++ b/libglusterfs/src/graph.c
|
|
|
14f8ab |
@@ -1193,14 +1193,6 @@ glusterfs_graph_fini(glusterfs_graph_t *graph)
|
|
|
14f8ab |
if (trav->init_succeeded) {
|
|
|
14f8ab |
trav->cleanup_starting = 1;
|
|
|
14f8ab |
trav->fini(trav);
|
|
|
14f8ab |
- if (trav->local_pool) {
|
|
|
14f8ab |
- mem_pool_destroy(trav->local_pool);
|
|
|
14f8ab |
- trav->local_pool = NULL;
|
|
|
14f8ab |
- }
|
|
|
14f8ab |
- if (trav->itable) {
|
|
|
14f8ab |
- inode_table_destroy(trav->itable);
|
|
|
14f8ab |
- trav->itable = NULL;
|
|
|
14f8ab |
- }
|
|
|
14f8ab |
trav->init_succeeded = 0;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
trav = trav->next;
|
|
|
14f8ab |
@@ -1402,7 +1394,7 @@ glusterfs_graph_cleanup(void *arg)
|
|
|
14f8ab |
|
|
|
14f8ab |
pthread_mutex_lock(&ctx->cleanup_lock);
|
|
|
14f8ab |
{
|
|
|
14f8ab |
- glusterfs_graph_fini(graph);
|
|
|
14f8ab |
+ glusterfs_graph_deactivate(graph);
|
|
|
14f8ab |
glusterfs_graph_destroy(graph);
|
|
|
14f8ab |
}
|
|
|
14f8ab |
pthread_mutex_unlock(&ctx->cleanup_lock);
|
|
|
14f8ab |
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub.c b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
|
|
|
14f8ab |
index 03446be..3f48a4b 100644
|
|
|
14f8ab |
--- a/xlators/features/bit-rot/src/stub/bit-rot-stub.c
|
|
|
14f8ab |
+++ b/xlators/features/bit-rot/src/stub/bit-rot-stub.c
|
|
|
14f8ab |
@@ -185,7 +185,6 @@ cleanup_lock:
|
|
|
14f8ab |
pthread_mutex_destroy(&priv->lock);
|
|
|
14f8ab |
free_mempool:
|
|
|
14f8ab |
mem_pool_destroy(priv->local_pool);
|
|
|
14f8ab |
- priv->local_pool = NULL;
|
|
|
14f8ab |
free_priv:
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
this->private = NULL;
|
|
|
14f8ab |
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
|
|
|
14f8ab |
index 2862d1e..d9025f3 100644
|
|
|
14f8ab |
--- a/xlators/features/changelog/src/changelog.c
|
|
|
14f8ab |
+++ b/xlators/features/changelog/src/changelog.c
|
|
|
14f8ab |
@@ -2790,7 +2790,6 @@ cleanup_options:
|
|
|
14f8ab |
changelog_freeup_options(this, priv);
|
|
|
14f8ab |
cleanup_mempool:
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
cleanup_priv:
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
error_return:
|
|
|
14f8ab |
diff --git a/xlators/features/cloudsync/src/cloudsync.c b/xlators/features/cloudsync/src/cloudsync.c
|
|
|
14f8ab |
index 0ad987e..26e512c 100644
|
|
|
14f8ab |
--- a/xlators/features/cloudsync/src/cloudsync.c
|
|
|
14f8ab |
+++ b/xlators/features/cloudsync/src/cloudsync.c
|
|
|
14f8ab |
@@ -200,10 +200,8 @@ cs_init(xlator_t *this)
|
|
|
14f8ab |
|
|
|
14f8ab |
out:
|
|
|
14f8ab |
if (ret == -1) {
|
|
|
14f8ab |
- if (this->local_pool) {
|
|
|
14f8ab |
+ if (this->local_pool)
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
- }
|
|
|
14f8ab |
|
|
|
14f8ab |
cs_cleanup_private(priv);
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
|
|
|
14f8ab |
index 4ece7ff..2f2a6d0 100644
|
|
|
14f8ab |
--- a/xlators/features/index/src/index.c
|
|
|
14f8ab |
+++ b/xlators/features/index/src/index.c
|
|
|
14f8ab |
@@ -2478,7 +2478,6 @@ out:
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
this->private = NULL;
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
if (attr_inited)
|
|
|
14f8ab |
diff --git a/xlators/features/quiesce/src/quiesce.c b/xlators/features/quiesce/src/quiesce.c
|
|
|
14f8ab |
index 06f58c9..bfd1116 100644
|
|
|
14f8ab |
--- a/xlators/features/quiesce/src/quiesce.c
|
|
|
14f8ab |
+++ b/xlators/features/quiesce/src/quiesce.c
|
|
|
14f8ab |
@@ -2536,7 +2536,6 @@ fini(xlator_t *this)
|
|
|
14f8ab |
this->private = NULL;
|
|
|
14f8ab |
|
|
|
14f8ab |
mem_pool_destroy(priv->local_pool);
|
|
|
14f8ab |
- priv->local_pool = NULL;
|
|
|
14f8ab |
LOCK_DESTROY(&priv->lock);
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
out:
|
|
|
14f8ab |
diff --git a/xlators/features/read-only/src/worm.c b/xlators/features/read-only/src/worm.c
|
|
|
14f8ab |
index 7d13180..24196f8 100644
|
|
|
14f8ab |
--- a/xlators/features/read-only/src/worm.c
|
|
|
14f8ab |
+++ b/xlators/features/read-only/src/worm.c
|
|
|
14f8ab |
@@ -569,7 +569,6 @@ fini(xlator_t *this)
|
|
|
14f8ab |
mem_put(priv);
|
|
|
14f8ab |
this->private = NULL;
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
out:
|
|
|
14f8ab |
return;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
diff --git a/xlators/features/sdfs/src/sdfs.c b/xlators/features/sdfs/src/sdfs.c
|
|
|
14f8ab |
index 164c632..f0247fd 100644
|
|
|
14f8ab |
--- a/xlators/features/sdfs/src/sdfs.c
|
|
|
14f8ab |
+++ b/xlators/features/sdfs/src/sdfs.c
|
|
|
14f8ab |
@@ -1429,7 +1429,6 @@ void
|
|
|
14f8ab |
fini(xlator_t *this)
|
|
|
14f8ab |
{
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
return;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
|
|
|
14f8ab |
diff --git a/xlators/features/selinux/src/selinux.c b/xlators/features/selinux/src/selinux.c
|
|
|
14f8ab |
index ce5fc90..58b4c5d 100644
|
|
|
14f8ab |
--- a/xlators/features/selinux/src/selinux.c
|
|
|
14f8ab |
+++ b/xlators/features/selinux/src/selinux.c
|
|
|
14f8ab |
@@ -256,7 +256,6 @@ out:
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
}
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
return ret;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
@@ -285,7 +284,6 @@ fini(xlator_t *this)
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
|
|
|
14f8ab |
return;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c
|
|
|
14f8ab |
index eb5007b..d668436 100644
|
|
|
14f8ab |
--- a/xlators/features/trash/src/trash.c
|
|
|
14f8ab |
+++ b/xlators/features/trash/src/trash.c
|
|
|
14f8ab |
@@ -2523,7 +2523,6 @@ out:
|
|
|
14f8ab |
GF_FREE(priv);
|
|
|
14f8ab |
}
|
|
|
14f8ab |
mem_pool_destroy(this->local_pool);
|
|
|
14f8ab |
- this->local_pool = NULL;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
return ret;
|
|
|
14f8ab |
}
|
|
|
14f8ab |
--
|
|
|
14f8ab |
1.8.3.1
|
|
|
14f8ab |
|