git: 2533b5dc8270 - main - vfs: add missing bits to vdropl_impl
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Mar 2022 14:37:19 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=2533b5dc82701ac5e31d0f98dd15362397b2478e commit 2533b5dc82701ac5e31d0f98dd15362397b2478e 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:35:37 +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") --- 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 c498c9193754..6d7d189e1dd6 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -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