Change in ffilz/nfs-ganesha[next]: FSAL_MDCACHE: prevent double free on new raced entries
From <fatih@gandi.net>: fatih@gandi.net has uploaded this change for review. ( https://review.gerrithub.io/426583 Change subject: FSAL_MDCACHE: prevent double free on new raced entries ...................................................................... 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 https://review.gerrithub.io/426583 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/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>
participants (1)
-
GerritHub