From e5b464d09f35b2f8be9b911cba4013d07d2876af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 2 Oct 2007 16:06:17 +0000 Subject: [PATCH] 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 --- src/system/kernel/vm/vm_page.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index 63d4f24c11..e488e9f7ab 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -851,6 +851,10 @@ page_thief(void* /*unused*/) continue; } 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); vm_cache_release_ref(cache); continue;