git: 727277325d2c - stable/13 - vfs: add missing bits to vdropl_impl
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Mar 2022 14:38:08 UTC
The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=727277325d2c3b1925880d07634f0270000136f2 commit 727277325d2c3b1925880d07634f0270000136f2 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-27 14:00:09 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-27 14:37:58 +0000 vfs: add missing bits to vdropl_impl This completes the patch which was originally meant to go in. Spotted by: mhorne Fixes: c35ec1efdcb2978b ("vfs: [1/2] fix stalls in vnode reclaim by not requeieing from vnlru") (cherry picked from commit 2533b5dc82701ac5e31d0f98dd15362397b2478e) --- sys/kern/vfs_subr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index d27e7a15d886..6c01b3dc817c 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -3668,6 +3668,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