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
This commit is contained in:
kib 2008-02-26 12:16:35 +00:00
parent 1f588d3b57
commit 8b513f42f1

View File

@ -410,7 +410,7 @@ vop_getwritemount {
};
%% print vp = = =
%% print vp - - -
vop_print {
IN struct vnode *vp;