From c6715cfb480583aab954ed2a0ddb8de0d1326346 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 29 May 2015 16:28:10 +0530 Subject: features/qemu-block: Don't unref root inode Backport of http://review.gluster.org/11002 http://review.gluster.org/11076 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: 1226272 Change-Id: I776d8e9359c8b51763d9d2588a80311434a0ede3 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/11047 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Poornima G --- xlators/features/qemu-block/src/qemu-block.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features/qemu-block') diff --git a/xlators/features/qemu-block/src/qemu-block.c b/xlators/features/qemu-block/src/qemu-block.c index 8cc78ff165c..371ca8723fb 100644 --- a/xlators/features/qemu-block/src/qemu-block.c +++ b/xlators/features/qemu-block/src/qemu-block.c @@ -1088,8 +1088,8 @@ fini (xlator_t *this) this->private = NULL; - if (conf->root_inode) - inode_unref(conf->root_inode); + /* No need to do inode_unref of conf->root_inode as ref/unref doesn't + * apply for it*/ GF_FREE (conf); return; -- cgit