Skip to content

Commit 66e6dbb

Browse files
authored
Merge pull request #823 from wenchengji159357/dev
Dev
2 parents a79fa9c + 306b685 commit 66e6dbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

freebsd/kern/kern_event.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ kqueue_release(struct kqueue *kq, int locked)
16721672
KQ_UNLOCK(kq);
16731673
}
16741674

1675+
#ifndef FSTACK
16751676
static void
16761677
kqueue_schedtask(struct kqueue *kq)
16771678
{
@@ -1685,6 +1686,7 @@ kqueue_schedtask(struct kqueue *kq)
16851686
kq->kq_state |= KQ_TASKSCHED;
16861687
}
16871688
}
1689+
#endif
16881690

16891691
/*
16901692
* Expand the kq to make sure we have storage for fops/ident pair.
@@ -2221,7 +2223,11 @@ kqueue_wakeup(struct kqueue *kq)
22212223
kq->kq_state &= ~KQ_SEL;
22222224
}
22232225
if (!knlist_empty(&kq->kq_sel.si_note))
2226+
#ifndef FSTACK
22242227
kqueue_schedtask(kq);
2228+
#else
2229+
KNOTE_UNLOCKED(&kq->kq_sel.si_note, 0);
2230+
#endif
22252231
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
22262232
pgsigio(&kq->kq_sigio, SIGIO, 0);
22272233
}

0 commit comments

Comments
 (0)