VirtualBox

Changeset 29672 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 19, 2010 10:02:49 PM (15 years ago)
Author:
vboxsync
Message:

AHCI: Count non queued async tasks too. Fixes rare crash during suspend if an async flush is still active

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r29504 r29672  
    49504950#endif
    49514951
     4952        ASMAtomicDecU32(&pAhciPort->uActTasksActive);
    49524953        ahciSendD2HFis(pAhciPort, pAhciPortTaskState, pAhciPortTaskState->cmdFis, true);
    49534954    }
     
    54425443            pAhciPortTaskState->enmTxDir = enmTxDir;
    54435444
    5444             if (pAhciPortTaskState->fQueued)
    5445             {
    5446                 ahciLog(("%s: Before increment uActTasksActive=%u\n", __FUNCTION__, pAhciPort->uActTasksActive));
    5447                 ASMAtomicIncU32(&pAhciPort->uActTasksActive);
    5448                 ahciLog(("%s: After increment uActTasksActive=%u\n", __FUNCTION__, pAhciPort->uActTasksActive));
    5449             }
     5445            ahciLog(("%s: Before increment uActTasksActive=%u\n", __FUNCTION__, pAhciPort->uActTasksActive));
     5446            ASMAtomicIncU32(&pAhciPort->uActTasksActive);
     5447            ahciLog(("%s: After increment uActTasksActive=%u\n", __FUNCTION__, pAhciPort->uActTasksActive));
    54505448
    54515449            if (enmTxDir != AHCITXDIR_FLUSH)
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