git: kernel - Add callback API for mpipe

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jan 29 19:01:10 PST 2011


commit e669f79662196966927abc7dc968bcb18b17c041
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jan 29 18:57:09 2011 -0800

    kernel - Add callback API for mpipe
    
    * Add a callback API for mpipe which uses a dedicated kthread,
      allowing clients to avoid deadlocks related to held locks during
      strategy calls.
    
    * Add mpipe_alloc_callback().  Use of this function also requires
      that MPF_CALLBACK be supplied to mpipe_init().
    
    * Add mpipe_wait().  This function may be used for clients which
      which to roll their own mpipe retry loop (or already have their
      own thread(s) to deal with it in a safe manner).

Summary of changes:
 sys/kern/kern_mpipe.c |  189 +++++++++++++++++++++++++++++++++++++++----------
 sys/sys/mpipe.h       |   12 +++
 2 files changed, 164 insertions(+), 37 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list