Files
mirror_zfs/module/spl
tuxoko f5f2b87df0 Fix taskq dynamic spawning
Currently taskq_dispatch() will spawn new task with a condition that the caller
is also a member of the taskq. However, under this condition, it will still
cause deadlock where a task on tq1 is waiting another thread, who is trying to
dispatch a task on tq1. So this patch removes the check.

For example when you do:
zfs send pp/fs0@001 | zfs recv pp/fs0_copy

This will easily deadlock before this patch.

Also, move the seq_task check from taskq_thread_spawn() to taskq_thread()
because it's not used by the caller from taskq_dispatch().

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #496
2015-11-13 15:02:55 -08:00
..
2013-03-04 19:09:34 -08:00
2014-10-17 15:11:51 -07:00
2015-02-02 10:57:56 -08:00
2015-01-21 15:25:19 -08:00
2015-01-16 13:55:08 -08:00
2015-07-21 11:47:10 -07:00
2013-03-04 19:09:34 -08:00
2015-11-13 15:02:55 -08:00
2015-04-24 14:23:07 -07:00
2015-04-24 13:02:37 -07:00
2015-01-16 13:55:08 -08:00