fatih@gandi.net has uploaded this change for review.

View Change

FSAL_MDCACHE: prevent double free on new raced entries

This is a partial revert of c55046feb786d69de8ba046e7cbd242479621b66.
The newly acquired entry is actually in the LRU at this point,
it is inserted in mdcache_alloc_handle.
We should put the ref once and let the reaper do the rest,
otherwise it may race with another thread (LRU thread/reaper).

Change-Id: Ia548c842b79958deb6b895a0249ec0bb4cde65d2
Signed-off-by: Fatih Acar <fatih.acar@gandi.net>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
1 file changed, 1 insertion(+), 3 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/83/426583/1

To view, visit change 426583. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia548c842b79958deb6b895a0249ec0bb4cde65d2
Gerrit-Change-Number: 426583
Gerrit-PatchSet: 1
Gerrit-Owner: Anonymous Coward <fatih@gandi.net>