]> git.proxmox.com Git - mirror_spl.git/commit
Allow kicking a taskq to spawn more threads
authorChunwei Chen <david.chen@osnexus.com>
Thu, 28 Jan 2016 00:55:14 +0000 (16:55 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Feb 2016 22:08:31 +0000 (14:08 -0800)
commit8f3b403a73fa9b1db06050edf737e1f051b05070
tree4209d27ba6a092bccc3df727d31fcf34b6238e50
parentd112232f5ec4b25e8446f9a2430d1a63908e6e5a
Allow kicking a taskq to spawn more threads

This patch add a module parameter spl_taskq_kick. When writing non-zero value
to it, it will scan all the taskq, if a taskq contains a task pending for more
than 5 seconds, it will be forced to spawn a new thread. This is use as an
emergency recovery from deadlock, not a general solution.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #529
include/sys/taskq.h
man/man5/spl-module-parameters.5
module/spl/spl-taskq.c