VirtualBox

Changeset 44430 in vbox for trunk/src


Ignore:
Timestamp:
Jan 28, 2013 3:31:18 PM (12 years ago)
Author:
vboxsync
Message:

Storage: Fix endless loop in flush handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r44415 r44430  
    29342934            rc = pDisk->pCache->Backend->pfnFlush(pDisk->pCache->pBackendData, pIoCtx);
    29352935            if (   RT_SUCCESS(rc)
    2936                 || rc == VERR_VD_ASYNC_IO_IN_PROGRESS)
     2936                || rc != VERR_VD_ASYNC_IO_IN_PROGRESS)
    29372937                vdIoCtxUnlockDisk(pDisk, pIoCtx, true /* fProcessBlockedReqs */);
    2938         }
    2939         else
     2938            else
     2939                rc = VINF_SUCCESS;
     2940        }
     2941        else if (rc == VERR_VD_ASYNC_IO_IN_PROGRESS)
     2942            rc = VINF_SUCCESS;
     2943        else /* Some other error. */
    29402944            vdIoCtxUnlockDisk(pDisk, pIoCtx, true /* fProcessBlockedReqs */);
    29412945    }
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