CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/06/22 11:35:50
Modified files:
sys/kern : vfs_subr.c
Log message:
sys/vfs: discard buffers after vclean error
vclean() ignored vinvalbuf(V_SAVE) failures and continued into
VOP_RECLAIM(). If dirty buffer writeback failed, the vnode could be
reclaimed and later reused while old buffers still referenced the same
struct vnode identity.
Report the failed flush, then force buffer invalidation before reclaim
proceeds. vclean() has no failure channel; discarding dirty buffers may
lose data, but reusing the vnode with stale buffers is worse, and a
panic would risk unrelated dirty state.
OK claudio@