DragonFly BSD
DragonFly commits List (threaded) for 2011-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix MP race in vmspace_president_count()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Mar 2011 23:27:31 -0700 (PDT)

commit 87882e126b762d0175ced26c8e2337af315e510a
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Mar 24 23:25:05 2011 -0700

    kernel - Fix MP race in vmspace_president_count()
    
    * We must get at least a shared vm_map lock in order to scan the
      vm_map_entry list.
    
    * Cache the totaled value and use it for repeated requests within one
      second or if the vm_map lock could not be acquired non-blocking.
    
    * The bug being fixed could be triggered by top.

Summary of changes:
 sys/vm/vm_map.h |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/87882e126b762d0175ced26c8e2337af315e510a


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]