Changeset 39938 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Feb 1, 2012 3:54:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevAHCI.cpp
r39845 r39938 5383 5383 { 5384 5384 /* Task is active and was canceled. */ 5385 AssertMsg(pAhciPort->cTasksActive > 0, ("Task was canceled but none is active\n")); 5385 AssertReleaseMsg(ASMAtomicReadU32(&pAhciPort->cTasksActive) > 0, 5386 ("Task was canceled but none is active\n")); 5386 5387 ASMAtomicDecU32(&pAhciPort->cTasksActive); 5387 5388 … … 5400 5401 } 5401 5402 5403 AssertRelease(!ASMAtomicReadU32(&pAhciPort->cTasksActive)); 5402 5404 return true; /* always true for now because tasks don't use guest memory as the buffer which makes canceling a task impossible. */ 5403 5405 } … … 5696 5698 /* Add the task to the cache. */ 5697 5699 ASMAtomicWritePtr(&pAhciPort->aCachedTasks[pAhciReq->uTag], pAhciReq); 5700 AssertReleaseMsg(ASMAtomicReadU32(&pAhciPort->cTasksActive) > 0 , 5701 ("Inconsistent request counter\n")); 5698 5702 ASMAtomicDecU32(&pAhciPort->cTasksActive); 5699 5703 … … 6249 6253 else 6250 6254 { 6255 AssertReleaseMsg(ASMAtomicReadU32(&pAhciPort->cTasksActive) < AHCI_NR_COMMAND_SLOTS, 6256 ("There are more than 32 requests active")); 6251 6257 ASMAtomicIncU32(&pAhciPort->cTasksActive); 6252 6258 … … 6433 6439 else 6434 6440 { 6441 AssertReleaseMsg(ASMAtomicReadU32(&pAhciPort->cTasksActive) < AHCI_NR_COMMAND_SLOTS, 6442 ("There are more than 32 requests active")); 6435 6443 ASMAtomicIncU32(&pAhciPort->cTasksActive); 6436 6444 enmTxDir = ahciProcessCmd(pAhciPort, pAhciReq, &pAhciReq->cmdFis[0]); … … 6445 6453 { 6446 6454 pAhciPort->Led.Asserted.s.fWriting = pAhciPort->Led.Actual.s.fWriting = 1; 6447 rc = pAhciPort->pDrvBlock->pfnDiscard(pAhciPort->pDrvBlock, 6455 rc = pAhciPort->pDrvBlock->pfnDiscard(pAhciPort->pDrvBlock, 6448 6456 pAhciReq->u.Trim.paRanges, 6449 6457 pAhciReq->u.Trim.cRanges);
Note:
See TracChangeset
for help on using the changeset viewer.