From 719bc93e11f6607d302d908475b240e1d50f5a89 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 5 Aug 2017 00:26:37 -0700 Subject: Use a dedicated reap thread instead of taskq. The problem is that reaping these things performs some blocking operations which can tie up slots in the taskq, preventing other tasks from running. Ultimately this can lead to a deadlock as tasks that are blocked wind up waiting for tasks that can't get scheduled. Blocking tasks really should not run on the system taskq. --- src/core/pipe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/pipe.h') diff --git a/src/core/pipe.h b/src/core/pipe.h index b8f6d90a..40871062 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -34,7 +34,7 @@ struct nni_pipe { int p_refcnt; nni_mtx p_mtx; nni_cv p_cv; - nni_task p_reap_task; + nni_list_node p_reap_node; nni_aio p_start_aio; }; -- cgit v1.2.3-70-g09d2