From 986bee7d66fc98e7efb14575939ca30ad6152f57 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 3 Aug 2004 20:40:31 +0000 Subject: [PATCH] freelance-deadlock-20040803 Avoid deadlock in Freelance mount point re-initialization --- src/WINNT/afsd/cm_callback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WINNT/afsd/cm_callback.c b/src/WINNT/afsd/cm_callback.c index ddc9af0578..09a756c741 100644 --- a/src/WINNT/afsd/cm_callback.c +++ b/src/WINNT/afsd/cm_callback.c @@ -650,7 +650,9 @@ int cm_HaveCallback(cm_scache_t *scp) } else if (fdc==2 && !fgc) { // we're in good shape if (cm_getLocalMountPointChange()) { // check for changes cm_clearLocalMountPointChange(); // clear the changefile + lock_ReleaseMutex(scp->mx); // this is re-locked in reInitLocalMountPoints cm_reInitLocalMountPoints(); // start reinit + lock_ObtainMutex(scp->mx); // now get the lock back return 0; } return 1; // no change