git: kernel - Fix MP race in vmspace_president_count()

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Mar 24 23:28:00 PDT 2011


commit 87882e126b762d0175ced26c8e2337af315e510a
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list