mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-windows-scache-ref-leak-20061012
make sure the scache mutex is held across calls to cm_SyncOpDone (cherry picked from commit 2b96ba59194831ef298585c4f82d574a0790f3a6)
This commit is contained in:
parent
b5d4cf1a6e
commit
e95eedf99f
@ -1057,7 +1057,9 @@ long cm_IoctlDeleteMountPoint(struct smb_ioctl *ioctlp, struct cm_user *userp)
|
||||
dscp, cp, NULL, TRUE);
|
||||
|
||||
done1:
|
||||
lock_ObtainMutex(&scp->mx);
|
||||
cm_SyncOpDone(scp, NULL, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);
|
||||
lock_ReleaseMutex(&scp->mx);
|
||||
|
||||
done2:
|
||||
cm_ReleaseSCache(dscp);
|
||||
@ -1917,7 +1919,9 @@ long cm_IoctlDeletelink(struct smb_ioctl *ioctlp, struct cm_user *userp)
|
||||
dscp, cp, NULL, TRUE);
|
||||
|
||||
done1:
|
||||
lock_ObtainMutex(&scp->mx);
|
||||
cm_SyncOpDone(scp, NULL, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);
|
||||
lock_ReleaseMutex(&scp->mx);
|
||||
|
||||
done2:
|
||||
cm_ReleaseSCache(dscp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user