ShengLi has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1248893?usp=email ) Change subject: RADOS_URLS: stop the heartbeat thread before joining it ...................................................................... RADOS_URLS: stop the heartbeat thread before joining it Shutdown hangs when the heartbeat thread is running because cu_rados_url_shutdown() joins it before clearing the initialized flag that controls its loop. Use a separate atomic stop flag, reset before thread creation and set before joining, to stop the thread without racing on initialized. Keep client teardown after the join and clear service_update_started to avoid joining the same thread again. Change-Id: I3d0c37dda67e6b1223b06d676288b9bc97b13c57 Signed-off-by: Sheng Li <50203418+LiShengG@users.noreply.github.com> --- M src/config_parsing/conf_url_rados.c 1 file changed, 11 insertions(+), 3 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/93/1248893/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1248893?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: I3d0c37dda67e6b1223b06d676288b9bc97b13c57 Gerrit-Change-Number: 1248893 Gerrit-PatchSet: 1 Gerrit-Owner: ShengLi <50203418+LiShengG@users.noreply.github.com>