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

git: kernel - Fix p->p_lock race and remove unused procedures


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Nov 2011 12:27:13 -0800 (PST)

commit e22b17d7f557c0e9481bc8962a5ac417e883e11a
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Nov 10 12:25:09 2011 -0800

    kernel - Fix p->p_lock race and remove unused procedures
    
    * Remove vm_waitproc() (move its vmspace_exitfree() call to the one place
      that calls vm_waitproc()).
    
    * Remove cpu_proc_wait(), which only called pmap_dispose_proc().
    
    * Remove pmap_dispose_proc(), which only had an (incorrect) assertion in it
      and otherwise did nothing.
    
    * Wait for the p->p_lock count to drop to zero before calling
      vmspace_exitfree(), and then wait again afterwords now that there
      are absolutely no possible references to (p) left.

Summary of changes:
 sys/kern/kern_exit.c                       |   17 ++++++++++-------
 sys/platform/pc32/i386/pmap.c              |   10 ----------
 sys/platform/pc32/i386/vm_machdep.c        |   11 -----------
 sys/platform/pc64/x86_64/pmap.c            |   10 ----------
 sys/platform/pc64/x86_64/vm_machdep.c      |   11 -----------
 sys/platform/vkernel/i386/vm_machdep.c     |   11 -----------
 sys/platform/vkernel/platform/pmap.c       |   10 ----------
 sys/platform/vkernel64/platform/pmap.c     |   10 ----------
 sys/platform/vkernel64/x86_64/vm_machdep.c |   11 -----------
 sys/sys/proc.h                             |    1 -
 sys/vm/pmap.h                              |    1 -
 sys/vm/vm_extern.h                         |    1 -
 sys/vm/vm_glue.c                           |   14 --------------
 13 files changed, 10 insertions(+), 108 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e22b17d7f557c0e9481bc8962a5ac417e883e11a


-- 
DragonFly BSD source repository



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