diff options
author | Mark Johnston <markj@FreeBSD.org> | 2018-11-21 17:28:10 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2018-11-21 17:28:10 +0000 |
commit | 45aecd0422ae83e9de44e9412208e3fdf3474aab (patch) | |
tree | b7eeedd186acd11613e1ac939097b5bb45a6859c | |
parent | 544e0a4f69f671b8be3f4ffac2cd4522f1cc7724 (diff) | |
download | src-45aecd0422ae83e9de44e9412208e3fdf3474aab.tar.gz src-45aecd0422ae83e9de44e9412208e3fdf3474aab.zip |
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
Notes
Notes:
svn path=/head/; revision=340733
-rw-r--r-- | sys/kern/kern_event.c | 4 | ||||
-rw-r--r-- | sys/sys/event.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index d9c670e29d60..fa59153f77e6 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -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); } } diff --git a/sys/sys/event.h b/sys/sys/event.h index 7ae1c9023ced..c3063e3b8cb5 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -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 */ |