Changeset 64025 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 26, 2016 6:53:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r64019 r64025 2613 2613 2614 2614 Assert(pIoReq->enmType == PDMMEDIAEXIOREQTYPE_READ || pIoReq->enmType == PDMMEDIAEXIOREQTYPE_WRITE); 2615 Assert(pIoReq->ReadWrite.cbIoBuf > 0); 2615 2616 2616 2617 /* Make sure the buffer is reset. */ … … 2849 2850 { 2850 2851 /* Adjust the remaining amount to transfer. */ 2852 Assert(pIoReq->ReadWrite.cbIoBuf > 0); 2853 2851 2854 size_t cbReqIo = RT_MIN(pIoReq->ReadWrite.cbReqLeft, pIoReq->ReadWrite.cbIoBuf); 2852 2855 pIoReq->ReadWrite.offStart += cbReqIo; … … 2887 2890 rc = VINF_PDM_MEDIAEX_IOREQ_IN_PROGRESS; 2888 2891 } 2892 else 2893 Assert(pIoReq->ReadWrite.cbIoBuf > 0); 2889 2894 2890 2895 return rc; … … 2904 2909 int rc = VINF_SUCCESS; 2905 2910 2906 if (pThis->fAsyncIOSupported) 2911 Assert(cbReqIo > 0); 2912 2913 if ( pThis->fAsyncIOSupported 2914 && !(pIoReq->fFlags & PDMIMEDIAEX_F_SYNC)) 2907 2915 { 2908 2916 if (pThis->pBlkCache) … … 2947 2955 int rc = VINF_SUCCESS; 2948 2956 2949 if (pThis->fAsyncIOSupported) 2957 Assert(cbReqIo > 0); 2958 2959 if ( pThis->fAsyncIOSupported 2960 && !(pIoReq->fFlags & PDMIMEDIAEX_F_SYNC)) 2950 2961 { 2951 2962 if (pThis->pBlkCache) … … 2988 2999 int rc = VINF_SUCCESS; 2989 3000 2990 if (pThis->fAsyncIOSupported) 3001 if ( pThis->fAsyncIOSupported 3002 && !(pIoReq->fFlags & PDMIMEDIAEX_F_SYNC)) 2991 3003 { 2992 3004 if (pThis->pBlkCache) … … 3022 3034 int rc = VINF_SUCCESS; 3023 3035 3024 if (pThis->fAsyncIOSupported) 3036 if ( pThis->fAsyncIOSupported 3037 && !(pIoReq->fFlags & PDMIMEDIAEX_F_SYNC)) 3025 3038 { 3026 3039 if (pThis->pBlkCache) … … 3065 3078 && rc == VINF_SUCCESS) 3066 3079 { 3080 Assert(pIoReq->ReadWrite.cbIoBuf > 0); 3081 3067 3082 size_t cbReqIo = RT_MIN(pIoReq->ReadWrite.cbReqLeft, pIoReq->ReadWrite.cbIoBuf); 3068 3083 … … 3127 3142 if (rc == VINF_SUCCESS) 3128 3143 { 3144 Assert(pIoReq->ReadWrite.cbIoBuf > 0); 3145 3129 3146 ASMAtomicDecU32(&pThis->cIoReqsWaiting); 3130 3147 RTListNodeRemove(&pIoReqCur->NdLstWait);
Note:
See TracChangeset
for help on using the changeset viewer.