Skip to content

Commit 0b8e61a

Browse files
author
logwang
committed
Fix bug: dead loop when destroy a network interface.
1 parent 8966cc7 commit 0b8e61a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

freebsd/kern/subr_taskqueue.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ _timeout_task_init(struct taskqueue *queue, struct timeout_task *timeout_task,
112112
timeout_task->f = 0;
113113
}
114114

115+
#ifndef FSTACK
115116
static __inline int
116117
TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm,
117118
int t)
@@ -120,6 +121,9 @@ TQ_SLEEP(struct taskqueue *tq, void *p, struct mtx *m, int pri, const char *wm,
120121
return (msleep_spin(p, m, wm, t));
121122
return (msleep(p, m, pri, wm, t));
122123
}
124+
#else
125+
#define TQ_SLEEP(a, b, c, d, e, f) break;
126+
#endif
123127

124128
static struct taskqueue *
125129
_taskqueue_create(const char *name, int mflags,

0 commit comments

Comments
 (0)