Added a TODO what we need to do with stolen active pages - for now, we don't
do anything with them, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22413 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -851,6 +851,10 @@ page_thief(void* /*unused*/)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (page->state != PAGE_STATE_INACTIVE) {
|
if (page->state != PAGE_STATE_INACTIVE) {
|
||||||
|
// TODO: if this is an active page (as in stealActive), we need
|
||||||
|
// to unmap it and check if it's modified in an atomic operation.
|
||||||
|
// For now, we'll just ignore it, even though this might let
|
||||||
|
// vm_page_allocate_page() wait forever...
|
||||||
mutex_unlock(&cache->lock);
|
mutex_unlock(&cache->lock);
|
||||||
vm_cache_release_ref(cache);
|
vm_cache_release_ref(cache);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user