Revision 66647742891153167214eb91d72b93fb61844b89 authored by John Baldwin on 22 January 2010, 17:02:07 UTC, committed by John Baldwin on 22 January 2010, 17:02:07 UTC
Adapt vfs kqfilter to the shared vnode lock used by zfs write vop. Use
vnode interlock to protect the knote fields. The locking assumes
that shared vnode lock is held, thus we get exclusive access to knote
either by exclusive vnode lock protection, or by shared vnode lock +
vnode interlock.

Unlike the change in HEAD, this does not remove kl_locked() and replace it
with kl_assert_locked() and kl_assert_unlocked().  Instead, the kl_locked
can now be set to NULL in which case no assertion checks are performed on
the lock.  The vfs kqfilter code uses this mode to disable assertion checks.
This preserves the existing ABI for knlist_init().

Add convenience function knlist_init_mtx to reduce number of arguments
for typical knlist initialization.

Reviewed by:	kib
1 parent 0e497cd
History
File Mode Size
bin
cddl
contrib
crypto
etc
games
gnu
include
kerberos5
lib
libexec
release
rescue
sbin
secure
share
sys
tools
usr.bin
usr.sbin
ALU-USA-statement.pdf -rw-r--r-- 38.0 KB
COPYRIGHT -rw-r--r-- 6.0 KB
Caldera-license.pdf -rw-r--r-- 12.0 KB
LICENSE -rw-r--r-- 14.8 KB
LOCKS -rw-r--r-- 354 bytes
MAINTAINERS -rw-r--r-- 6.7 KB
Makefile -rw-r--r-- 11.7 KB
Makefile.inc1 -rw-r--r-- 38.2 KB
ObsoleteFiles.inc -rw-r--r-- 190.4 KB
README -rw-r--r-- 3.0 KB
README.md -rw-r--r-- 16.2 KB
UPDATING -rw-r--r-- 43.4 KB

README.md

back to top