From 846f4fa2abcb40c3219378a467deaae4e62a654a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 7 Jul 2008 16:34:38 +0000 Subject: [PATCH] * Work-around for the KDEBUG "holder" mechanism; we actually want to lock the mutex in another thread here than we will unlock it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26300 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index cdabf3d726..7b810b9f6e 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -474,6 +474,10 @@ BlockAllocator::Initialize(bool full) "bfs block allocator", B_LOW_PRIORITY, (void *)this); if (id < B_OK) return _Initialize(this); +#ifdef KDEBUG + else + fLock.holder = id; +#endif return resume_thread(id); }