deepakarumugam.s(a)nutanix.com has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1193523?usp=email )
Change subject: Release refcount on entry before restarting readdir
......................................................................
Release refcount on entry before restarting readdir
When there is a readdir cache hit and a mdcache miss
we create a new mdcache entry and take a refcount on it.
By the time the mdcache entry is created if the readdir
cache entry is invalidated by another thread then we
don't free the ref taken on the created mdcache entry.
We release the reference on the chunks and by
consequence the dirents but that is not enough
because dirents only have a reference to the entry
in the readdir_cb code path.
Change-Id: I07795289084ec6daadf34dfdbbf5aa6769600f89
Signed-off-by: Deepak Arumugam Sankara Subramanian <deepakarumugam.s(a)nutanix.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/23/1193523/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1193523?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I07795289084ec6daadf34dfdbbf5aa6769600f89
Gerrit-Change-Number: 1193523
Gerrit-PatchSet: 1
Gerrit-Owner: deepakarumugam.s(a)nutanix.com