]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fifos: delegate unhandled kqueue filters to underlying filesystem
authorKyle Evans <kevans@FreeBSD.org>
Sat, 2 Oct 2021 05:23:03 +0000 (00:23 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 12 Oct 2021 07:43:07 +0000 (02:43 -0500)
commit7259ca31048e5ced8e7f90657a3d7084aeafdf51
tree1c335c5d775d82bdadbf68cf2fc882011a30a951
parentfc22fe5c74055802ac41090f345c8a45eab396b6
fifos: delegate unhandled kqueue filters to underlying filesystem

This gives the vfs layer a chance to provide handling for EVFILT_VNODE,
for instance.  Change pipe_specops to use the default vop_kqfilter to
accommodate fifoops that don't specify the method (i.e. all in-tree).

Based on a patch by Jan Kokemüller.

PR: 225934
Reviewed by: kib, markj (both pre-KASSERT)
Differential Revision: https://reviews.freebsd.org/D32271
sys/fs/fifofs/fifo_vnops.c
sys/kern/sys_pipe.c
sys/kern/vfs_subr.c
tests/sys/kqueue/libkqueue/common.h
tests/sys/kqueue/libkqueue/vnode.c