kernel - Add callback API for mpipe
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 30 Jan 2011 02:57:09 +0000 (18:57 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 30 Jan 2011 02:57:09 +0000 (18:57 -0800)
commite669f79662196966927abc7dc968bcb18b17c041
treeee8d6c09b8e41439b60399d0b4902e31286a6b46
parent39bedebc8310ef8759ce81f094c9eed1b888d570
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).
sys/kern/kern_mpipe.c
sys/sys/mpipe.h