From 2fd209cf00675b2c80af91bf969a930474496430 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 13 Jul 2010 23:42:31 +0000 Subject: [PATCH] page_writer(): Added TODO about potential deadlock in case of loop file systems/devices. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37502 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/vm/vm_page.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system/kernel/vm/vm_page.cpp b/src/system/kernel/vm/vm_page.cpp index 04d64a930f..337e1a644e 100644 --- a/src/system/kernel/vm/vm_page.cpp +++ b/src/system/kernel/vm/vm_page.cpp @@ -2016,6 +2016,11 @@ page_writer(void* /*unused*/) } run.AddPage(page); + // TODO: We're possibly adding pages of different caches and + // thus maybe of different underlying file systems here. This + // is a potential problem for loop file systems/devices, since + // we could mark a page busy that would need to be accessed + // when writing back another page, thus causing a deadlock. DEBUG_PAGE_ACCESS_END(page);