> Date: Sun, 22 Feb 2026 21:04:16 +0900
> From: Takashi YAMAMOTO <[email protected]>
> 
> On Sun, Feb 22, 2026 at 7:41 PM Taylor R Campbell <[email protected]> 
> wrote:
> >
> > If I recall correctly, a vnode with pending writes queued up for the
> > zil may become inactive and marked for reclamation _before_
> > zfs_get_data runs to issue those writes to the zil.
> >
> > At that point, the NetBSD vnode life cycle forbids acquiring a new
> > reference, so instead of returning the old vnode, vcache_get will wait
> > for concurrent references to the vnode to drain and then create a new
> > vnode initialized with VFS_LOADVNODE.
> >
> > I'm fuzzy on what happens at that point (hannken@ or chs@ may remember
> > better than I can), but I suspect it will be one of:
> >
> > 1. data associated with the old vnode (via the old v_data, the znode)
> >    will be silently lost; or
> 
> what data?

Pending file content being written to the file system -- the data that
zfs_get_data is getting in order for the zil to write it out.

Of course, if this only applies to files being removed, then maybe
that's a moot point.  But I'm not confident in my understanding of
this, and we should really have the exact problem written down.

Reply via email to