Skip to content

Dev #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2024
Merged

Dev #823

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions freebsd/kern/kern_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,7 @@ kqueue_release(struct kqueue *kq, int locked)
KQ_UNLOCK(kq);
}

#ifndef FSTACK
static void
kqueue_schedtask(struct kqueue *kq)
{
Expand All @@ -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.
Expand Down Expand Up @@ -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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gcc build error :kern_event.c:1676:1: error: ‘kqueue_schedtask’ defined but not used
May be you also use #ifndef FSTACK and '#endif' to protect the definition of kqueue_schedtask in line 1676.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

#else
KNOTE_UNLOCKED(&kq->kq_sel.si_note, 0);
#endif
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
pgsigio(&kq->kq_sigio, SIGIO, 0);
}
Expand Down