Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2026 14:56:17 +0000
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Cc:        Allan Jude <allanjude@FreeBSD.org>
Subject:   git: 085667c5f8ed - stable/14 - Reset kvo_laundry to prevent it being cumulative
Message-ID:  <6a564e11.3c268.d3813f@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=085667c5f8ed6d4b3200c86dc7a8c90c48768b7e

commit 085667c5f8ed6d4b3200c86dc7a8c90c48768b7e
Author:     Allan Jude <allanjude@FreeBSD.org>
AuthorDate: 2025-06-25 13:38:50 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-14 14:08:40 +0000

    Reset kvo_laundry to prevent it being cumulative
    
    `sysctl vm.objects`, used by `vmstat -o` was not resetting the
    laundry counter to 0 inside the loop, causing it to show the sum of
    the laundry count for all previous objects instead of only the laundry
    count for the current object.
    
    Fixes:  a86373bc93ee1c850943e8585d0d426479378145
    Reviewed by:    markj
    Sponsored by:   Klara, Inc.
    Sponsored by:   Modirum MDPay
    Differential Revision:  https://reviews.freebsd.org/D50907
    
    (cherry picked from commit 32f9c9699a5a56ef8ef1da8e2974a8b34e2b84f5)
---
 sys/vm/vm_object.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index ff164c03c5a5..22f4388a2ba8 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2577,6 +2577,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only)
 		kvo->kvo_memattr = obj->memattr;
 		kvo->kvo_active = 0;
 		kvo->kvo_inactive = 0;
+		kvo->kvo_laundry = 0;
 		kvo->kvo_flags = 0;
 		if (!swap_only) {
 			TAILQ_FOREACH(m, &obj->memq, listq) {


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a564e11.3c268.d3813f>