Changeset 38409 in vbox
- Timestamp:
- Aug 11, 2011 8:29:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r38203 r38409 2763 2763 int rc = VINF_SUCCESS; 2764 2764 2765 VD_THREAD_IS_CRITSECT_OWNER(pDisk); 2766 2765 2767 if (RT_FAILURE(rcReq)) 2766 2768 ASMAtomicCmpXchgS32(&pIoCtx->rcReq, rcReq, VINF_SUCCESS); … … 2820 2822 2821 2823 /* Process any pending writes if the current request didn't caused another growing. */ 2822 RTCritSectEnter(&pDisk->CritSect);2823 2824 2824 if ( !RTListIsEmpty(&pDisk->ListWriteLocked) 2825 2825 && !vdIoCtxIsDiskLockOwner(pDisk, pIoCtx)) … … 2857 2857 && ASMAtomicCmpXchgBool(&pIoCtxWait->fComplete, true, false)) 2858 2858 { 2859 RTCritSectLeave(&pDisk->CritSect);2860 2859 LogFlowFunc(("Waiting I/O context completed pIoCtxWait=%#p\n", pIoCtxWait)); 2861 2860 vdThreadFinishWrite(pDisk); … … 2864 2863 pIoCtxWait->rcReq); 2865 2864 vdIoCtxFree(pDisk, pIoCtxWait); 2866 RTCritSectEnter(&pDisk->CritSect);2867 2865 } 2868 2866 } while (!RTListIsEmpty(&ListTmp)); 2867 2868 RTCritSectEnter(&pDisk->CritSect); 2869 2869 } 2870 else2871 RTCritSectLeave(&pDisk->CritSect);2872 2870 } 2873 2871 else
Note:
See TracChangeset
for help on using the changeset viewer.