vm_page_requeue(): Disabled DEBUG_PAGE_ACCESS_CHECK(). Since r36155

idle_scan_active_pages() cannot satisfy this assertion anymore. Added TODO
for a better fix which can wait until after the release.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-05-06 13:42:24 +00:00
parent 212c4c0a20
commit 83bc49d051
1 changed files with 8 additions and 1 deletions

View File

@ -3441,7 +3441,14 @@ void
vm_page_requeue(struct vm_page *page, bool tail) vm_page_requeue(struct vm_page *page, bool tail)
{ {
PAGE_ASSERT(page, page->Cache() != NULL); PAGE_ASSERT(page, page->Cache() != NULL);
DEBUG_PAGE_ACCESS_CHECK(page); page->Cache()->AssertLocked();
// DEBUG_PAGE_ACCESS_CHECK(page);
// TODO: This assertion cannot be satisfied by idle_scan_active_pages()
// when it requeues busy pages. The reason is that vm_soft_fault()
// (respectively fault_get_page()) and the file cache keep newly
// allocated pages accessed while they are reading them from disk. It
// would probably be better to change that code and reenable this
// check.
VMPageQueue *queue = NULL; VMPageQueue *queue = NULL;