diff options
-rw-r--r-- | sys/kern/kern_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 089b67e..c642341 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -746,13 +746,13 @@ findkn: KQ_GLOBAL_LOCK(&kq_global, haskqglobal); } + FILEDESC_UNLOCK(fdp); KQ_LOCK(kq); if (kev->ident < kq->kq_knlistsize) { SLIST_FOREACH(kn, &kq->kq_knlist[kev->ident], kn_link) if (kev->filter == kn->kn_filter) break; } - FILEDESC_UNLOCK(fdp); } else { if ((kev->flags & EV_ADD) == EV_ADD) kqueue_expand(kq, fops, kev->ident, waitok); |