git: a14a142c6e32 - stable/13 - vlrureclaim: only skip vnode with resident pages if it own the pages
Konstantin Belousov
kib at FreeBSD.org
Sat Aug 14 10:22:35 UTC 2021
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=a14a142c6e32926b2d751356fb1f5ea4f3ddfa0c
commit a14a142c6e32926b2d751356fb1f5ea4f3ddfa0c
Author: Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-03-06 21:09:16 +0000
Commit: Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-08-14 10:21:59 +0000
vlrureclaim: only skip vnode with resident pages if it own the pages
(cherry picked from commit 44691b33cc99d0e17262368b6e0f64e531994a23)
---
sys/kern/vfs_subr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index bd4413edcb40..d67936447216 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1169,7 +1169,7 @@ restart:
VI_LOCK(vp);
if (vp->v_usecount > 0 ||
(!reclaim_nc_src && !LIST_EMPTY(&vp->v_cache_src)) ||
- (vp->v_object != NULL &&
+ (vp->v_object != NULL && vp->v_object->handle == vp &&
vp->v_object->resident_page_count > trigger)) {
VOP_UNLOCK(vp);
vdropl(vp);
More information about the dev-commits-src-all
mailing list