git: kernel -- ccd: Concatenated disk MPLOCK rework.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Jan 2 01:58:51 PST 2013


commit bf0d11829f31525ea6c0dbd5a7cfa25053a93766
Author: Venkatesh Srinivas <vsrinivas at ops101.org>
Date:   Wed Jan 2 00:36:25 2013 -0500

    kernel -- ccd: Concatenated disk MPLOCK rework.
    
    * Remove freelist of ccdbuf structures; kmalloc is good enough for them,
      removes a global list.
    
    * Rework ccdlock/ccdunlock to use a real lockmgr lock rather than a
      hand-rolled "lock" in the flags field.
    
    * Mark ccd disk D_MPSAFE; calls disk strategy routines without the MPLOCK.
    
    * Remove mplock from ccdiodone biodone callback; use ccdlock() on the
      softcontroller instead.
    
    * Remove unneeded critical section around ccdstart and in ccdioctl.
    
    * Remove mplock2.h.
    
    * Remove cb_freenext linkage from ccd buffers.

Summary of changes:
 sys/dev/disk/ccd/ccd.c |  103 +++++++++++++-----------------------------------
 sys/sys/ccdvar.h       |    3 +-
 2 files changed, 29 insertions(+), 77 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list