Changeset 39413 in vbox
- Timestamp:
- Nov 24, 2011 9:51:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r38876 r39413 1782 1782 size_t cbToRead = pIoCtx->Req.Io.cbTransfer; 1783 1783 uint64_t uOffset = pIoCtx->Req.Io.uOffset; 1784 PVDIMAGE pCurrImage = NULL;1784 PVDIMAGE pCurrImage = pIoCtx->Req.Io.pImageCur;; 1785 1785 size_t cbThisRead; 1786 1786 … … 1788 1788 do 1789 1789 { 1790 pCurrImage = pIoCtx->Req.Io.pImageCur;1791 1792 1790 /* Search for image with allocated block. Do not attempt to read more 1793 1791 * than the previous reads marked as valid. Otherwise this would return … … 1837 1835 cbToRead -= cbThisRead; 1838 1836 uOffset += cbThisRead; 1837 pCurrImage = pIoCtx->Req.Io.pImageStart; /* Start with the highest image in the chain. */ 1839 1838 } while (cbToRead != 0 && RT_SUCCESS(rc)); 1840 1839 … … 3651 3650 else 3652 3651 { 3652 RTCritSectLeave(&pDisk->CritSect); 3653 3653 3654 if (pIoCtx->enmTxDir == VDIOCTXTXDIR_FLUSH) 3654 3655 { … … 3666 3667 3667 3668 LogFlowFunc(("I/O context completed pIoCtx=%#p rcReq=%Rrc\n", pIoCtx, pIoCtx->rcReq)); 3668 RTCritSectLeave(&pDisk->CritSect);3669 3669 pIoCtx->Type.Root.pfnComplete(pIoCtx->Type.Root.pvUser1, 3670 3670 pIoCtx->Type.Root.pvUser2,
Note:
See TracChangeset
for help on using the changeset viewer.