Changeset 104556 in vbox
- Timestamp:
- May 8, 2024 1:32:45 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp
r99739 r104556 557 557 * Wrapper around RTFIleAioCtxSubmit() which is also doing error handling. 558 558 */ 559 static intpdmacFileAioMgrNormalReqsEnqueue(PPDMACEPFILEMGR pAioMgr,560 PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint,561 PRTFILEAIOREQ pahReqs, unsigned cReqs)559 static void pdmacFileAioMgrNormalReqsEnqueue(PPDMACEPFILEMGR pAioMgr, 560 PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint, 561 PRTFILEAIOREQ pahReqs, unsigned cReqs) 562 562 { 563 563 pAioMgr->cRequestsActive += cReqs; … … 621 621 { 622 622 /* We call ourself again to do any error handling which might come up now. */ 623 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &pahReqs[i], 1); 624 AssertRC(rc); 623 pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &pahReqs[i], 1); 625 624 } 626 625 else if (rcReq != VERR_FILE_AIO_IN_PROGRESS) … … 646 645 } 647 646 } 648 649 return VINF_SUCCESS;650 647 } 651 648 … … 1099 1096 if (cRequests == RT_ELEMENTS(apReqs)) 1100 1097 { 1101 rc =pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, apReqs, cRequests);1098 pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, apReqs, cRequests); 1102 1099 cRequests = 0; 1103 AssertMsg(RT_SUCCESS(rc) || (rc == VERR_FILE_AIO_INSUFFICIENT_RESSOURCES),1104 ("Unexpected return code\n"));1105 1100 } 1106 1101 } 1107 1102 1108 1103 if (cRequests) 1109 { 1110 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, apReqs, cRequests); 1111 AssertMsg(RT_SUCCESS(rc) || (rc == VERR_FILE_AIO_INSUFFICIENT_RESSOURCES), 1112 ("Unexpected return code rc=%Rrc\n", rc)); 1113 } 1104 pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, apReqs, cRequests); 1114 1105 1115 1106 if (pTaskHead) … … 1521 1512 1522 1513 pTask->hReq = hReq; 1523 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1); 1524 AssertMsg(RT_SUCCESS(rc) || (rc == VERR_FILE_AIO_INSUFFICIENT_RESSOURCES), 1525 ("Unexpected return code rc=%Rrc\n", rc)); 1514 pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1); 1526 1515 } 1527 1516 else if (pTask->fPrefetch) … … 1552 1541 AssertRC(rc); 1553 1542 pTask->hReq = hReq; 1554 rc = pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1); 1555 AssertMsg(RT_SUCCESS(rc) || (rc == VERR_FILE_AIO_INSUFFICIENT_RESSOURCES), 1556 ("Unexpected return code rc=%Rrc\n", rc)); 1543 pdmacFileAioMgrNormalReqsEnqueue(pAioMgr, pEndpoint, &hReq, 1); 1557 1544 } 1558 1545 else
Note:
See TracChangeset
for help on using the changeset viewer.