]> git.proxmox.com Git - mirror_spl-debian.git/commit
Implement taskq_dispatch_prealloc() interface
authorPrakash Surya <surya1@llnl.gov>
Tue, 6 Dec 2011 18:04:51 +0000 (10:04 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 14 Dec 2011 00:10:57 +0000 (16:10 -0800)
commit44217f7aad12225c09e5fefbbce97ac6bf2f2d16
tree77aa3c7a82878dc94fb13da94166622c9184f914
parentac1e5b6033811e15f6e471e720bf506e4e3b4a08
Implement taskq_dispatch_prealloc() interface

This patch implements the taskq_dispatch_prealloc() interface which
was introduced by the following illumos-gate commit.  It allows for
a preallocated taskq_ent_t to be used when dispatching items to a
taskq.  This eliminates a memory allocation which helps minimize
lock contention in the taskq when dispatching functions.

    commit 5aeb94743e3be0c51e86f73096334611ae3a058e
    Author: Garrett D'Amore <garrett@nexenta.com>
    Date:   Wed Jul 27 07:13:44 2011 -0700

    734 taskq_dispatch_prealloc() desired
    943 zio_interrupt ends up calling taskq_dispatch with TQ_SLEEP

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #65
include/sys/taskq.h
module/spl/spl-taskq.c