svn commit: r340733 - in head/sys: kern sys
Mark Johnston
markj at FreeBSD.org
Wed Nov 21 17:28:11 UTC 2018
Author: markj
Date: Wed Nov 21 17:28:10 2018
New Revision: 340733
URL: https://svnweb.freebsd.org/changeset/base/340733
Log:
Remove KN_HASKQLOCK.
It is a write-only flag whose last use was removed in r302235.
No functional change intended.
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18059
Modified:
head/sys/kern/kern_event.c
head/sys/sys/event.h
Modified: head/sys/kern/kern_event.c
==============================================================================
--- head/sys/kern/kern_event.c Wed Nov 21 17:22:31 2018 (r340732)
+++ head/sys/kern/kern_event.c Wed Nov 21 17:28:10 2018 (r340733)
@@ -549,10 +549,8 @@ knote_fork(struct knlist *list, int pid)
* The same as knote(), activate the event.
*/
if ((kn->kn_sfflags & NOTE_TRACK) == 0) {
- kn->kn_status |= KN_HASKQLOCK;
if (kn->kn_fop->f_event(kn, NOTE_FORK))
KNOTE_ACTIVATE(kn, 1);
- kn->kn_status &= ~KN_HASKQLOCK;
KQ_UNLOCK(kq);
continue;
}
@@ -2272,10 +2270,8 @@ knote(struct knlist *list, long hint, int lockflags)
KNOTE_ACTIVATE(kn, 1);
KQ_UNLOCK_FLUX(kq);
} else {
- kn->kn_status |= KN_HASKQLOCK;
if (kn->kn_fop->f_event(kn, hint))
KNOTE_ACTIVATE(kn, 1);
- kn->kn_status &= ~KN_HASKQLOCK;
KQ_UNLOCK(kq);
}
}
Modified: head/sys/sys/event.h
==============================================================================
--- head/sys/sys/event.h Wed Nov 21 17:22:31 2018 (r340732)
+++ head/sys/sys/event.h Wed Nov 21 17:28:10 2018 (r340733)
@@ -294,7 +294,6 @@ struct knote {
#define KN_DETACHED 0x08 /* knote is detached */
#define KN_MARKER 0x20 /* ignore this knote */
#define KN_KQUEUE 0x40 /* this knote belongs to a kq */
-#define KN_HASKQLOCK 0x80 /* for _inevent */
#define KN_SCAN 0x100 /* flux set in kqueue_scan() */
int kn_influx;
int kn_sfflags; /* saved filter flags */
More information about the svn-src-all
mailing list