summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-common.c1
-rw-r--r--xlators/performance/io-cache/src/io-cache.c7
2 files changed, 5 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 04a90aae4c6..f954b1399db 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -4073,7 +4073,6 @@ afr_priv_destroy (afr_private_t *priv)
if (!priv)
goto out;
- inode_unref (priv->root_inode);
GF_FREE (priv->last_event);
if (priv->pending_key) {
for (i = 0; i < priv->child_count; i++)
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index facff5038a7..21acad02657 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -2062,7 +2062,6 @@ fini (xlator_t *this)
{
ioc_table_t *table = NULL;
struct ioc_priority *curr = NULL, *tmp = NULL;
- int i = 0;
table = this->private;
@@ -2082,11 +2081,15 @@ fini (xlator_t *this)
GF_FREE (curr);
}
- for (i = 0; i < table->max_pri; i++) {
+ /* inode_lru and inodes list can be empty in case fini() is
+ * called soon after init()? Hence commenting the below asserts.
+ */
+ /*for (i = 0; i < table->max_pri; i++) {
GF_ASSERT (list_empty (&table->inode_lru[i]));
}
GF_ASSERT (list_empty (&table->inodes));
+ */
pthread_mutex_destroy (&table->table_lock);
GF_FREE (table);