sepia-liu has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/495911 ) Change subject: MDCACHE: root_obj must be released before last unexport ...................................................................... MDCACHE: root_obj must be released before last unexport root object must be released before last export is released. If last export of root_obj is released, just left root object handle in cache, once the export resource is used through root_obj->export, NULL pointer used cause to crash such as obj->export->cmount in deconstruct_handle() of FSAL_CEPH. So can not remove cih_remove_checked() in mdcache_unexport. Another case, if the object entry to be root of multiple exports, here should not unhash and set entry as invalid when the first export unmount, but unhash in last unexport. So we need to judge. Change-Id: I0068441f94b6185f3b072391edb8c5ec29ea60ca Signed-off-by: sepia-liu <liuwei_coder@163.com> --- M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_export.c 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/11/495911/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/495911 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: I0068441f94b6185f3b072391edb8c5ec29ea60ca Gerrit-Change-Number: 495911 Gerrit-PatchSet: 1 Gerrit-Owner: sepia-liu <liuwei_coder@163.com> Gerrit-MessageType: newchange