mirror of https://github.com/F-Stack/f-stack.git
commit
66e6dbba2a
|
@ -1672,6 +1672,7 @@ kqueue_release(struct kqueue *kq, int locked)
|
||||||
KQ_UNLOCK(kq);
|
KQ_UNLOCK(kq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef FSTACK
|
||||||
static void
|
static void
|
||||||
kqueue_schedtask(struct kqueue *kq)
|
kqueue_schedtask(struct kqueue *kq)
|
||||||
{
|
{
|
||||||
|
@ -1685,6 +1686,7 @@ kqueue_schedtask(struct kqueue *kq)
|
||||||
kq->kq_state |= KQ_TASKSCHED;
|
kq->kq_state |= KQ_TASKSCHED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Expand the kq to make sure we have storage for fops/ident pair.
|
* Expand the kq to make sure we have storage for fops/ident pair.
|
||||||
|
@ -2221,7 +2223,11 @@ kqueue_wakeup(struct kqueue *kq)
|
||||||
kq->kq_state &= ~KQ_SEL;
|
kq->kq_state &= ~KQ_SEL;
|
||||||
}
|
}
|
||||||
if (!knlist_empty(&kq->kq_sel.si_note))
|
if (!knlist_empty(&kq->kq_sel.si_note))
|
||||||
|
#ifndef FSTACK
|
||||||
kqueue_schedtask(kq);
|
kqueue_schedtask(kq);
|
||||||
|
#else
|
||||||
|
KNOTE_UNLOCKED(&kq->kq_sel.si_note, 0);
|
||||||
|
#endif
|
||||||
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
|
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
|
||||||
pgsigio(&kq->kq_sigio, SIGIO, 0);
|
pgsigio(&kq->kq_sigio, SIGIO, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue