Changeset 29450 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 13, 2010 3:35:35 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp
r29121 r29450 632 632 633 633 /* Query default backend type */ 634 #ifndef RT_OS_LINUX635 rc = CFGMR3QueryStringAllocDef(pCfgNode, "FileBackend", &pszVal, "Buffered");636 #else /* Linux can't use buffered with async */637 634 rc = CFGMR3QueryStringAllocDef(pCfgNode, "FileBackend", &pszVal, "NonBuffered"); 638 #endif639 635 AssertLogRelRCReturn(rc, rc); 640 636 … … 658 654 { 659 655 /* No configuration supplied, set defaults */ 660 pEpClassFile->enmMgrTypeOverride = PDMACEPFILEMGRTYPE_ASYNC;661 #ifdef RT_OS_LINUX662 656 pEpClassFile->enmEpBackendDefault = PDMACFILEEPBACKEND_NON_BUFFERED; 663 #else664 pEpClassFile->enmEpBackendDefault = PDMACFILEEPBACKEND_BUFFERED;665 #endif666 657 } 667 658 } -
trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp
r29228 r29450 1029 1029 AssertMsg(hReq != NIL_RTFILEAIOREQ, ("Out of request handles\n")); 1030 1030 1031 LogFlow(("Flush request %#p\n", hReq)); 1032 1031 1033 rc = RTFileAioReqPrepareFlush(hReq, pEndpoint->File, pCurr); 1032 1034 if (RT_FAILURE(rc)) … … 1071 1073 AssertRC(rc); 1072 1074 1075 LogFlow(("Read/Write request %#p\n", hReq)); 1076 1073 1077 if (hReq != NIL_RTFILEAIOREQ) 1074 1078 { … … 1643 1647 cReqsWait = pAioMgr->cRequestsActive; 1644 1648 1645 LogFlow(("Waiting for %d of %d tasks to complete\n", pAioMgr->cRequestsActive, cReqsWait));1649 LogFlow(("Waiting for %d of %d tasks to complete\n", 1, cReqsWait)); 1646 1650 1647 1651 rc = RTFileAioCtxWait(pAioMgr->hAioCtx, 1648 cReqsWait,1652 1, 1649 1653 RT_INDEFINITE_WAIT, apReqs, 1650 RT_ELEMENTS(apReqs), &cReqsCompleted);1654 cReqsWait, &cReqsCompleted); 1651 1655 if (RT_FAILURE(rc) && (rc != VERR_INTERRUPTED)) 1652 1656 CHECK_RC(pAioMgr, rc);
Note:
See TracChangeset
for help on using the changeset viewer.