From a42137eee3c9e340ac9c82ebacca14eeb4b9d912 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Thu, 15 Feb 2018 16:12:12 +0530 Subject: features/shard: Fix shard inode refcount when it's part of priv->lru_list. For as long as a shard's inode is in priv->lru_list, it should have a non-zero ref-count. This patch achieves it by taking a ref on the inode when it is added to lru list. When it's time for the inode to be evicted from the lru list, a corresponding unref is done. Change-Id: I289ffb41e7be5df7489c989bc1bbf53377433c86 BUG: 1468483 Signed-off-by: Krutika Dhananjay --- tests/basic/inode-leak.t | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'tests/basic') diff --git a/tests/basic/inode-leak.t b/tests/basic/inode-leak.t index f73d2af6898..6bfbf572f03 100644 --- a/tests/basic/inode-leak.t +++ b/tests/basic/inode-leak.t @@ -3,23 +3,6 @@ . $(dirname $0)/../include.rc . $(dirname $0)/../volume.rc -function get_mount_active_size_value { - local vol=$1 - local statedump=$(generate_mount_statedump $vol) - sleep 1 - local val=$(grep "active_size" $statedump | cut -f2 -d'=' | tail -1) - rm -f $statedump - echo $val -} - -function get_mount_lru_size_value { - local vol=$1 - local statedump=$(generate_mount_statedump $vol) - sleep 1 - local val=$(grep "lru_size" $statedump | cut -f2 -d'=' | tail -1) - rm -f $statedump - echo $val -} cleanup TEST glusterd -- cgit