]> granicus.if.org Git - zfs/commit
Limit number of tasks shown in taskq proc
authorChunwei Chen <tuxoko@gmail.com>
Thu, 1 Dec 2016 18:06:27 +0000 (10:06 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Dec 2016 18:06:27 +0000 (11:06 -0700)
commit493492559e32aa77ff8a5b32572afab5b848a53b
tree6625b9ad7cb203ae0a479ca801ba2a467096d1bf
parentcbba7146676dd145f373bcbe4f4f435d9100ddbb
Limit number of tasks shown in taskq proc

To prevent holding tq_lock for too long.

Before zfsonlinux/zfs@8e71ab9, hogging delay tasks and cat /proc/spl/taskq
would easily cause a lockup. While that bug has been fixed. It's probably
still a good idea to do this just in case task lists grow too large.

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #586
man/man5/spl-module-parameters.5
module/spl/spl-proc.c