VirtualBox

Changeset 29450 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 13, 2010 3:35:35 PM (15 years ago)
Author:
vboxsync
Message:

AsyncCompletion: Fix parameters for RTFileAioCtxWait

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp

    r29121 r29450  
    632632
    633633            /* Query default backend type */
    634 #ifndef RT_OS_LINUX
    635             rc = CFGMR3QueryStringAllocDef(pCfgNode, "FileBackend", &pszVal, "Buffered");
    636 #else /* Linux can't use buffered with async */
    637634            rc = CFGMR3QueryStringAllocDef(pCfgNode, "FileBackend", &pszVal, "NonBuffered");
    638 #endif
    639635            AssertLogRelRCReturn(rc, rc);
    640636
     
    658654        {
    659655            /* No configuration supplied, set defaults */
    660             pEpClassFile->enmMgrTypeOverride = PDMACEPFILEMGRTYPE_ASYNC;
    661 #ifdef RT_OS_LINUX
    662656            pEpClassFile->enmEpBackendDefault = PDMACFILEEPBACKEND_NON_BUFFERED;
    663 #else
    664             pEpClassFile->enmEpBackendDefault = PDMACFILEEPBACKEND_BUFFERED;
    665 #endif
    666657        }
    667658    }
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r29228 r29450  
    10291029                    AssertMsg(hReq != NIL_RTFILEAIOREQ, ("Out of request handles\n"));
    10301030
     1031                    LogFlow(("Flush request %#p\n", hReq));
     1032
    10311033                    rc = RTFileAioReqPrepareFlush(hReq, pEndpoint->File, pCurr);
    10321034                    if (RT_FAILURE(rc))
     
    10711073                AssertRC(rc);
    10721074
     1075                LogFlow(("Read/Write request %#p\n", hReq));
     1076
    10731077                if (hReq != NIL_RTFILEAIOREQ)
    10741078                {
     
    16431647                        cReqsWait = pAioMgr->cRequestsActive;
    16441648
    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));
    16461650
    16471651                    rc = RTFileAioCtxWait(pAioMgr->hAioCtx,
    1648                                           cReqsWait,
     1652                                          1,
    16491653                                          RT_INDEFINITE_WAIT, apReqs,
    1650                                           RT_ELEMENTS(apReqs), &cReqsCompleted);
     1654                                          cReqsWait, &cReqsCompleted);
    16511655                    if (RT_FAILURE(rc) && (rc != VERR_INTERRUPTED))
    16521656                        CHECK_RC(pAioMgr, rc);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette