summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-05-29 16:28:10 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-30 05:37:18 -0700
commit35f7d213fe7395ba502a8e209b04c2be1ea75928 (patch)
tree6b4857fbb4f640383ee0d344353133c2d204cac4 /xlators/features
parent90ed7128dfd4d10e65efcc866cfd610ba3b0cc30 (diff)
features/qemu-block: Don't unref root inode
Root inode doesn't participate in ref/unref. Don't do it in fini as by the time fini is called itable would be destroyed. BUG: 1226276 Change-Id: I704d0a3c0813cb8f6c3f1f7d613c89aca8f4f9ad Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/11002 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/qemu-block/src/qemu-block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c
index 89cb3e9b5d2..12bc2743756 100644
--- a/xlators/features/qemu-block/src/qemu-block.c
+++ b/xlators/features/qemu-block/src/qemu-block.c
@@ -1083,8 +1083,7 @@ fini (xlator_t *this)
this->private = NULL;
- if (conf->root_inode)
- inode_unref(conf->root_inode);
+ conf->root_inode = NULL;
GF_FREE (conf);
return;