Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Mark kqread_filtops, user_filtops, and seltrue_filt...



details:   https://anonhg.NetBSD.org/src/rev/a284cd0cb563
branches:  trunk
changeset: 987443:a284cd0cb563
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 26 18:13:58 2021 +0000

description:
Mark kqread_filtops, user_filtops, and seltrue_filtops as MPSAFE.

diffstat:

 sys/kern/kern_event.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 3c59623fa5a3 -r a284cd0cb563 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Sun Sep 26 17:34:19 2021 +0000
+++ b/sys/kern/kern_event.c     Sun Sep 26 18:13:58 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.122 2021/09/26 03:12:50 thorpej Exp $ */
+/*     $NetBSD: kern_event.c,v 1.123 2021/09/26 18:13:58 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.122 2021/09/26 03:12:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.123 2021/09/26 18:13:58 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -130,7 +130,7 @@
 };
 
 static const struct filterops kqread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_kqdetach,
        .f_event = filt_kqueue,
@@ -171,7 +171,7 @@
 };
 
 static const struct filterops user_filtops = {
-       .f_flags = 0,
+       .f_flags = FILTEROP_MPSAFE,
        .f_attach = filt_userattach,
        .f_detach = filt_userdetach,
        .f_event = filt_user,
@@ -990,7 +990,7 @@
 }
 
 const struct filterops seltrue_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_seltruedetach,
        .f_event = filt_seltrue,



Home | Main Index | Thread Index | Old Index