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:
parent
1fb18eea38
commit
e30cf87ba1
@ -410,7 +410,7 @@ vop_getwritemount {
|
||||
};
|
||||
|
||||
|
||||
%% print vp = = =
|
||||
%% print vp - - -
|
||||
|
||||
vop_print {
|
||||
IN struct vnode *vp;
|
||||
|
Loading…
Reference in New Issue
Block a user