git: kernel - Refactor kern_mutex (mtx* functions)

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Mar 15 18:52:40 PDT 2015


commit d66b88f39a3fa6f69804b7329dfaccfb15642746
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Mar 15 18:48:15 2015 -0700

    kernel - Refactor kern_mutex (mtx* functions)
    
    * Refactor kern_mutex in order to support asynchronous lock requests,
      which hammer2 is going to need.  kern_mutex already supports abortable
      locks.
    
    * Add callback fields to the mtx_link structure.
    
    * Use the mtx_link structure for shared locks in addition to exclusive locks,
      allowing asynchronous callbacks for shared locks and exclusive locks.
    
    * Make the locking flags more deterministic.
    
    * Redo the typedefs to be more like hammer2.  Typedef the structures rather
      than pointers so the typedef names can be used for structural embedding.

Summary of changes:
 sys/kern/kern_mutex.c      | 908 ++++++++++++++++++++++++++++++---------------
 sys/sys/mutex.h            |  60 +--
 sys/sys/mutex2.h           | 112 +++---
 sys/vfs/nfs/nfs.h          |   2 +-
 sys/vfs/nfs/nfs_socket.c   |  13 +-
 sys/vfs/nfs/nfs_syscalls.c |   4 +-
 6 files changed, 721 insertions(+), 378 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list