diff options
author | kib <kib@FreeBSD.org> | 2008-02-26 12:16:35 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-02-26 12:16:35 +0000 |
commit | 8b513f42f1936a2c0135c84679203126aa3c5852 (patch) | |
tree | d59c433e47edae5146bc6943f757d145fcdcfbc0 /sys/kern/vnode_if.src | |
parent | 1f588d3b57e5778cad17b3748a3bcd93f221deb6 (diff) | |
download | FreeBSD-src-8b513f42f1936a2c0135c84679203126aa3c5852.zip FreeBSD-src-8b513f42f1936a2c0135c84679203126aa3c5852.tar.gz |
Do not assert any locks for VOP_PRINT. In particular, do not assert that
the vnode interlock is not held. vn_printf() already correctly handles
locked and unlocked vnode interlocks, and all the in-tree vop_print
methods are interlock-agnostic.
Some code calls vprintf() with the vnode interlock held, that causes
unjustified panics with INVARIANTS (ffs_syncvnode() as example).
Reported by: Peter Holm
Diffstat (limited to 'sys/kern/vnode_if.src')
-rw-r--r-- | sys/kern/vnode_if.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index 754cbc3..b06e64f 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -410,7 +410,7 @@ vop_getwritemount { }; -%% print vp = = = +%% print vp - - - vop_print { IN struct vnode *vp; |