DragonFly commits List (threaded) for 2011-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Add callback API for mpipe
commit e669f79662196966927abc7dc968bcb18b17c041
Author: Matthew Dillon <dillon@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]