kqtimer_proc_continue(): correct calculation of 'now'
It must be sbinuptime(), this is how kc->next is set up. PR: 293141 Noted and reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D55264
This commit is contained in:
@@ -814,14 +814,11 @@ void
|
|||||||
kqtimer_proc_continue(struct proc *p)
|
kqtimer_proc_continue(struct proc *p)
|
||||||
{
|
{
|
||||||
struct kq_timer_cb_data *kc, *kc1;
|
struct kq_timer_cb_data *kc, *kc1;
|
||||||
struct bintime bt;
|
|
||||||
sbintime_t now;
|
sbintime_t now;
|
||||||
|
|
||||||
PROC_LOCK_ASSERT(p, MA_OWNED);
|
PROC_LOCK_ASSERT(p, MA_OWNED);
|
||||||
|
|
||||||
getboottimebin(&bt);
|
now = sbinuptime();
|
||||||
now = bttosbt(bt);
|
|
||||||
|
|
||||||
TAILQ_FOREACH_SAFE(kc, &p->p_kqtim_stop, link, kc1) {
|
TAILQ_FOREACH_SAFE(kc, &p->p_kqtim_stop, link, kc1) {
|
||||||
TAILQ_REMOVE(&p->p_kqtim_stop, kc, link);
|
TAILQ_REMOVE(&p->p_kqtim_stop, kc, link);
|
||||||
kc->flags &= ~KQ_TIMER_CB_ENQUEUED;
|
kc->flags &= ~KQ_TIMER_CB_ENQUEUED;
|
||||||
|
|||||||
Reference in New Issue
Block a user