mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
STABLE14-windows-smb-vcp-clean-20060508
don't grab the vcp mutex after releasing the vcp (cherry picked from commit 77fbc6a158a570f1816c87433c0e4c44c0fc8fce)
This commit is contained in:
parent
d0989f7a14
commit
d57f679ab9
@ -1047,14 +1047,15 @@ void smb_CleanupDeadVC(smb_vc_t *vcp)
|
||||
uidpNext = vcp->usersp;
|
||||
}
|
||||
|
||||
lock_ObtainMutex(&vcp->mx);
|
||||
vcp->flags &= ~SMB_VCFLAG_CLEAN_IN_PROGRESS;
|
||||
lock_ReleaseMutex(&vcp->mx);
|
||||
|
||||
/* The vcp is now on the deadVCsp list. We intentionally drop the
|
||||
* reference so that the refcount can reach 0 and we can delete it */
|
||||
smb_ReleaseVCNoLock(vcp);
|
||||
|
||||
lock_ReleaseWrite(&smb_rctLock);
|
||||
lock_ObtainMutex(&vcp->mx);
|
||||
vcp->flags &= ~SMB_VCFLAG_CLEAN_IN_PROGRESS;
|
||||
lock_ReleaseMutex(&vcp->mx);
|
||||
osi_Log1(smb_logp, "Finished cleaning up dead vcp 0x%x", vcp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user