Source-Changes-HG archive

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

[src/trunk]: src/sys/kern The pipe kq filter ops are MPSAFE.



details:   https://anonhg.NetBSD.org/src/rev/d175e2a4daae
branches:  trunk
changeset: 1023801:d175e2a4daae
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Sep 26 15:48:54 2021 +0000

description:
The pipe kq filter ops are MPSAFE.

diffstat:

 sys/kern/sys_pipe.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r c99d2bde928b -r d175e2a4daae sys/kern/sys_pipe.c
--- a/sys/kern/sys_pipe.c       Sun Sep 26 15:11:33 2021 +0000
+++ b/sys/kern/sys_pipe.c       Sun Sep 26 15:48:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_pipe.c,v 1.154 2021/09/26 01:16:10 thorpej Exp $   */
+/*     $NetBSD: sys_pipe.c,v 1.155 2021/09/26 15:48:54 thorpej Exp $   */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.154 2021/09/26 01:16:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.155 2021/09/26 15:48:54 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1095,14 +1095,14 @@
 }
 
 static const struct filterops pipe_rfiltops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_pipedetach,
        .f_event = filt_piperead,
 };
 
 static const struct filterops pipe_wfiltops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_pipedetach,
        .f_event = filt_pipewrite,



Home | Main Index | Thread Index | Old Index