[haiku-commits] r35315 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 27 Jan 2010 08:19:58 +0100 (CET)

Author: bonefish
Date: 2010-01-27 08:19:58 +0100 (Wed, 27 Jan 2010)
New Revision: 35315
Changeset: http://dev.haiku-os.org/changeset/35315/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/VMAddressSpaceLocking.cpp
Log:
Lock the kernel address space last.


Modified: haiku/trunk/src/system/kernel/vm/VMAddressSpaceLocking.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/VMAddressSpaceLocking.cpp  2010-01-27 
03:07:13 UTC (rev 35314)
+++ haiku/trunk/src/system/kernel/vm/VMAddressSpaceLocking.cpp  2010-01-27 
07:19:58 UTC (rev 35315)
@@ -323,7 +323,8 @@
 {
        lock_item* a = (lock_item*)_a;
        lock_item* b = (lock_item*)_b;
-       return a->space->ID() - b->space->ID();
+       return b->space->ID() - a->space->ID();
+               // descending order, i.e. kernel address space last
 }
 
 


Other related posts:

  • » [haiku-commits] r35315 - haiku/trunk/src/system/kernel/vm - ingo_weinhold