Source-Changes-HG archive

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

[src/trunk]: src/sys The kq filterops that interact with sockets are MPSAFE.



details:   https://anonhg.NetBSD.org/src/rev/662d84b3048c
branches:  trunk
changeset: 1023860:662d84b3048c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Sep 29 13:15:45 2021 +0000

description:
The kq filterops that interact with sockets are MPSAFE.

diffstat:

 sys/kern/uipc_socket.c         |  10 +++++-----
 sys/miscfs/fifofs/fifo_vnops.c |   8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r 901860cf79e5 -r 662d84b3048c sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Wed Sep 29 13:14:39 2021 +0000
+++ b/sys/kern/uipc_socket.c    Wed Sep 29 13:15:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.297 2021/09/29 02:47:22 thorpej Exp $        */
+/*     $NetBSD: uipc_socket.c,v 1.298 2021/09/29 13:15:45 thorpej Exp $        */
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.297 2021/09/29 02:47:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.298 2021/09/29 13:15:45 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -2320,21 +2320,21 @@
 }
 
 static const struct filterops solisten_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_sordetach,
        .f_event = filt_solisten,
 };
 
 static const struct filterops soread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_sordetach,
        .f_event = filt_soread,
 };
 
 static const struct filterops sowrite_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_sowdetach,
        .f_event = filt_sowrite,
diff -r 901860cf79e5 -r 662d84b3048c sys/miscfs/fifofs/fifo_vnops.c
--- a/sys/miscfs/fifofs/fifo_vnops.c    Wed Sep 29 13:14:39 2021 +0000
+++ b/sys/miscfs/fifofs/fifo_vnops.c    Wed Sep 29 13:15:45 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fifo_vnops.c,v 1.85 2021/09/29 02:47:22 thorpej Exp $  */
+/*     $NetBSD: fifo_vnops.c,v 1.86 2021/09/29 13:15:45 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fifo_vnops.c,v 1.85 2021/09/29 02:47:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fifo_vnops.c,v 1.86 2021/09/29 13:15:45 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -578,14 +578,14 @@
 }
 
 static const struct filterops fiforead_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_fifordetach,
        .f_event = filt_fiforead,
 };
 
 static const struct filterops fifowrite_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_fifowdetach,
        .f_event = filt_fifowrite,



Home | Main Index | Thread Index | Old Index