VirtualBox

Changeset 29586 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2010 9:25:30 PM (15 years ago)
Author:
vboxsync
Message:

SCSI: Fix IoDepth statistic

File:
1 edited

Legend:

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

    r29330 r29586  
    178178    }
    179179
    180     ASMAtomicDecU32(&pThis->StatIoDepth);
    181180    VSCSIIoReqCompleted(hVScsiIoReq, rc);
    182181
     
    208207        AssertMsg(enmTxDir == VSCSIIOREQTXDIR_FLUSH, ("Invalid transfer direction %u\n", enmTxDir));
    209208
    210     ASMAtomicDecU32(&pThis->StatIoDepth);
    211209    VSCSIIoReqCompleted(hVScsiIoReq, rc);
    212210
     
    220218    int rc = VINF_SUCCESS;
    221219    PDRVSCSI pThis = (PDRVSCSI)pvScsiLunUser;
    222 
    223     ASMAtomicIncU32(&pThis->StatIoDepth);
    224220
    225221    if (pThis->pDrvBlockAsync)
     
    299295                AssertMsg(enmTxDir == VSCSIIOREQTXDIR_FLUSH, ("Invalid transfer direction %u\n", enmTxDir));
    300296
    301             ASMAtomicDecU32(&pThis->StatIoDepth);
    302297            VSCSIIoReqCompleted(hVScsiIoReq, VINF_SUCCESS);
    303298        }
     
    313308                AssertMsg(enmTxDir == VSCSIIOREQTXDIR_FLUSH, ("Invalid transfer direction %u\n", enmTxDir));
    314309
    315             ASMAtomicDecU32(&pThis->StatIoDepth);
    316310            VSCSIIoReqCompleted(hVScsiIoReq, rc);
    317311            rc = VINF_SUCCESS;
     
    465459        return rc;
    466460
     461    ASMAtomicIncU32(&pThis->StatIoDepth);
    467462    rc = VSCSIDeviceReqEnqueue(pThis->hVScsiDevice, hVScsiReq);
    468463
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