git: kernel - Fix hold race and catch bad vm_object terminations

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 15 08:35:10 PDT 2011


commit 34542daf57322ec6f265a100ebefb24a1805688b
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Apr 15 08:32:56 2011 -0700

    kernel - Fix hold race and catch bad vm_object terminations
    
    * vm_object_hold_wait() currently also needs the vm_token to safely
      test rb_memq.
    
    * Add code to complain if a VM object's rb_memq is not empty when
      the object is being terminated.

Summary of changes:
 sys/vm/swap_pager.c |    3 +++
 sys/vm/vm_object.c  |   21 +++++++++++++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/34542daf57322ec6f265a100ebefb24a1805688b


-- 
DragonFly BSD source repository





More information about the Commits mailing list