Skip to content

Commit

Permalink
Fix bug: dead loop when destroy a network interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
logwang committed Nov 10, 2017
1 parent 8966cc7 commit 0b8e61a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions freebsd/kern/subr_taskqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 0b8e61a

Please sign in to comment.