Merge pull request #823 from wenchengji159357/dev

Dev
This commit is contained in:
johnjiang 2024-05-31 12:22:47 +08:00 committed by GitHub
commit 66e6dbba2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -1672,6 +1672,7 @@ kqueue_release(struct kqueue *kq, int locked)
KQ_UNLOCK(kq);
}
#ifndef FSTACK
static void
kqueue_schedtask(struct kqueue *kq)
{
@ -1685,6 +1686,7 @@ kqueue_schedtask(struct kqueue *kq)
kq->kq_state |= KQ_TASKSCHED;
}
}
#endif
/*
* 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;
}
if (!knlist_empty(&kq->kq_sel.si_note))
#ifndef FSTACK
kqueue_schedtask(kq);
#else
KNOTE_UNLOCKED(&kq->kq_sel.si_note, 0);
#endif
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
pgsigio(&kq->kq_sigio, SIGIO, 0);
}