From 0b8e61ab4da2ee3694c980dbffad53b73da7bc9d Mon Sep 17 00:00:00 2001 From: logwang Date: Fri, 10 Nov 2017 18:52:10 +0800 Subject: [PATCH] Fix bug: dead loop when destroy a network interface. --- freebsd/kern/subr_taskqueue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freebsd/kern/subr_taskqueue.c b/freebsd/kern/subr_taskqueue.c index 800aae47..b69b8fe5 100644 --- a/freebsd/kern/subr_taskqueue.c +++ b/freebsd/kern/subr_taskqueue.c @@ -112,6 +112,7 @@ _timeout_task_init(struct taskqueue *queue, struct timeout_task *timeout_task, timeout_task->f = 0; } +#ifndef FSTACK static __inline int TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm, int t) @@ -120,6 +121,9 @@ TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm, return (msleep_spin(p, m, wm, t)); return (msleep(p, m, pri, wm, t)); } +#else +#define TQ_SLEEP(a, b, c, d, e, f) break; +#endif static struct taskqueue * _taskqueue_create(const char *name, int mflags,