VirtualBox

Changeset 26246 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 4, 2010 7:30:47 PM (15 years ago)
Author:
vboxsync
Message:

AsyncCompletion: Fix passthrough after cleanup, assertion and a locking error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileCache.cpp

    r26242 r26246  
    402402                pCache->cbCached -= pCurr->cbData;
    403403
     404                pdmacFileCacheEntryRemoveFromList(pCurr);
     405
    404406                if (pGhostListDst)
    405407                {
     408                    RTSemRWReleaseWrite(pEndpointCache->SemRWEntries);
    406409#ifdef VBOX_WITH_2Q_CACHE
    407410                    /* We have to remove the last entries from the paged out list. */
     
    433436                    STAM_PROFILE_ADV_STOP(&pCache->StatTreeRemove, Cache);
    434437
    435                     pdmacFileCacheEntryRemoveFromList(pCurr);
     438                    RTSemRWReleaseWrite(pEndpointCache->SemRWEntries);
    436439                    RTMemFree(pCurr);
    437440                }
    438441            }
    439             RTSemRWReleaseWrite(pEndpointCache->SemRWEntries);
     442
    440443        }
    441444        else
     
    14131416            cbToRead = RT_MIN(pEntry->cbData - OffDiff, cbRead);
    14141417
    1415             AssertMsg(off + (RTFOFF)cbToRead <= pEntry->Core.Key + pEntry->Core.KeyLast,
    1416                       ("Buffer of cache entry exceeded off=%RTfoff cbToRead=%z\n",
     1418            AssertMsg(off + (RTFOFF)cbToRead <= pEntry->Core.Key + pEntry->Core.KeyLast + 1,
     1419                      ("Buffer of cache entry exceeded off=%RTfoff cbToRead=%d\n",
    14171420                       off, cbToRead));
    14181421
     
    16261629                                                   &IoMemCtx, off, cbToRead,
    16271630                                                   PDMACTASKFILETRANSFER_READ);
     1631                off += cbToRead;
    16281632            }
    16291633        }
     
    19561960                                                   &IoMemCtx, off, cbToWrite,
    19571961                                                   PDMACTASKFILETRANSFER_WRITE);
     1962                off += cbToWrite;
    19581963            }
    19591964        }
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