Source-Changes-HG archive

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

[src/trunk]: src/sys/kern eventfd and timerfd have MPSAFE kq filterops.



details:   https://anonhg.NetBSD.org/src/rev/7ce91dfc3449
branches:  trunk
changeset: 1023780:7ce91dfc3449
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 26 03:42:54 2021 +0000

description:
eventfd and timerfd have MPSAFE kq filterops.

diffstat:

 sys/kern/sys_eventfd.c |  8 ++++----
 sys/kern/sys_timerfd.c |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 0476e8428221 -r 7ce91dfc3449 sys/kern/sys_eventfd.c
--- a/sys/kern/sys_eventfd.c    Sun Sep 26 03:23:06 2021 +0000
+++ b/sys/kern/sys_eventfd.c    Sun Sep 26 03:42:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_eventfd.c,v 1.5 2021/09/26 01:16:10 thorpej Exp $  */
+/*     $NetBSD: sys_eventfd.c,v 1.6 2021/09/26 03:42:54 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_eventfd.c,v 1.5 2021/09/26 01:16:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_eventfd.c,v 1.6 2021/09/26 03:42:54 thorpej Exp $");
 
 /*
  * eventfd
@@ -425,7 +425,7 @@
 }
 
 static const struct filterops eventfd_read_filterops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_detach = eventfd_filt_read_detach,
        .f_event = eventfd_filt_read,
 };
@@ -462,7 +462,7 @@
 }
 
 static const struct filterops eventfd_write_filterops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_detach = eventfd_filt_write_detach,
        .f_event = eventfd_filt_write,
 };
diff -r 0476e8428221 -r 7ce91dfc3449 sys/kern/sys_timerfd.c
--- a/sys/kern/sys_timerfd.c    Sun Sep 26 03:23:06 2021 +0000
+++ b/sys/kern/sys_timerfd.c    Sun Sep 26 03:42:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_timerfd.c,v 1.4 2021/09/26 01:16:10 thorpej Exp $  */
+/*     $NetBSD: sys_timerfd.c,v 1.5 2021/09/26 03:42:54 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_timerfd.c,v 1.4 2021/09/26 01:16:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_timerfd.c,v 1.5 2021/09/26 03:42:54 thorpej Exp $");
 
 /*
  * timerfd
@@ -421,7 +421,7 @@
 }
 
 static const struct filterops timerfd_read_filterops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_detach = timerfd_filt_read_detach,
        .f_event = timerfd_filt_read,
 };



Home | Main Index | Thread Index | Old Index