summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-11-16 14:41:31 +0000
committerphk <phk@FreeBSD.org>2004-11-16 14:41:31 +0000
commit815ab9f6946fe2955741aab8d7f65ef9b3d440ed (patch)
treec27613a94366c753acd1af1a9dc43f91870d9069 /sys
parent205866145eff75c19e34cdcdeafc112d85d87f16 (diff)
downloadFreeBSD-src-815ab9f6946fe2955741aab8d7f65ef9b3d440ed.zip
FreeBSD-src-815ab9f6946fe2955741aab8d7f65ef9b3d440ed.tar.gz
Move a FILEDESC_UNLOCK upwards to silence witness.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_event.c2
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);
OpenPOWER on IntegriCloud