Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs Mark the EVFILT_VNODE filters MP-safe.



details:   https://anonhg.NetBSD.org/src/rev/6d7bc0835dd7
branches:  trunk
changeset: 989060:6d7bc0835dd7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Oct 11 01:49:08 2021 +0000

description:
Mark the EVFILT_VNODE filters MP-safe.

diffstat:

 sys/miscfs/genfs/genfs_vnops.c |  10 +++++-----
 sys/nfs/nfs_kq.c               |   8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r ba5ec68060e5 -r 6d7bc0835dd7 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c    Mon Oct 11 01:21:28 2021 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c    Mon Oct 11 01:49:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_vnops.c,v 1.214 2021/10/11 01:07:36 thorpej Exp $        */
+/*     $NetBSD: genfs_vnops.c,v 1.215 2021/10/11 01:49:08 thorpej Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.214 2021/10/11 01:07:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.215 2021/10/11 01:49:08 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -596,21 +596,21 @@
 }
 
 static const struct filterops genfsread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_genfsdetach,
        .f_event = filt_genfsread,
 };
 
 static const struct filterops genfswrite_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_genfsdetach,
        .f_event = filt_genfswrite,
 };
 
 static const struct filterops genfsvnode_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_genfsdetach,
        .f_event = filt_genfsvnode,
diff -r ba5ec68060e5 -r 6d7bc0835dd7 sys/nfs/nfs_kq.c
--- a/sys/nfs/nfs_kq.c  Mon Oct 11 01:21:28 2021 +0000
+++ b/sys/nfs/nfs_kq.c  Mon Oct 11 01:49:08 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_kq.c,v 1.30 2021/10/11 01:07:36 thorpej Exp $      */
+/*     $NetBSD: nfs_kq.c,v 1.31 2021/10/11 01:49:08 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_kq.c,v 1.30 2021/10/11 01:07:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_kq.c,v 1.31 2021/10/11 01:49:08 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -277,14 +277,14 @@
 
 
 static const struct filterops nfsread_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_nfsdetach,
        .f_event = filt_nfsread,
 };
 
 static const struct filterops nfsvnode_filtops = {
-       .f_flags = FILTEROP_ISFD,
+       .f_flags = FILTEROP_ISFD | FILTEROP_MPSAFE,
        .f_attach = NULL,
        .f_detach = filt_nfsdetach,
        .f_event = filt_nfsvnode,



Home | Main Index | Thread Index | Old Index