vfs: add missing bits to vdropl_impl

This completes the patch which was originally meant to go in.

Spotted by:	mhorne
Fixes: c35ec1efdc ("vfs: [1/2] fix stalls in vnode reclaim by not
requeieing from vnlru")
This commit is contained in:
Mateusz Guzik 2022-03-27 14:00:09 +00:00
parent a4032e2a69
commit 2533b5dc82

View File

@ -3648,6 +3648,12 @@ vdropl_impl(struct vnode *vp, bool enqueue)
if (vp->v_mflag & VMP_LAZYLIST) {
vunlazy(vp);
}
if (!enqueue) {
VI_UNLOCK(vp);
return;
}
/*
* Also unlocks the interlock. We can't assert on it as we
* released our hold and by now the vnode might have been