Date: Sun, 27 Mar 2022 14:37:19 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2533b5dc8270 - main - vfs: add missing bits to vdropl_impl Message-ID: <202203271437.22REbJWI077721@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203271437.22REbJWI077721>