summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-06-08 08:04:09 +0000
committermpi <mpi@openbsd.org>2020-06-08 08:04:09 +0000
commit6e29a9444098b33c28a7ce5b32b593b9539d7294 (patch)
tree7e312cdeb58db6aaa4acfb1748b3f0d5119637e5 /sys/isofs
parentupdate drm to linux 5.7 (diff)
downloadwireguard-openbsd-6e29a9444098b33c28a7ce5b32b593b9539d7294.tar.xz
wireguard-openbsd-6e29a9444098b33c28a7ce5b32b593b9539d7294.zip
Use a new EV_OLDAPI flag to match the behavior of poll(2) and select(2).
Adapt FS kqfilters to always return true when the flag is set and bypass the polling mechanism of the NFS thread. While here implement a write filter for NFS. ok visa@
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index f1d43c64bd0..c1abbb92ee7 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vnops.c,v 1.83 2020/04/07 13:27:51 visa Exp $ */
+/* $OpenBSD: cd9660_vnops.c,v 1.84 2020/06/08 08:04:09 mpi Exp $ */
/* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */
/*-
@@ -1036,6 +1036,9 @@ filt_cd9660read(struct knote *kn, long hint)
return (1);
}
+ if (kn->kn_flags & EV_OLDAPI)
+ return (1);
+
return (kn->kn_data != 0);
}