Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 00:45:59 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9b392d07381e - stable/13 - sysctl vm.objects: yield if hog
Message-ID:  <202111010045.1A10jx4w005163@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b392d07381e6129a1f5e6280ed5b603a3b4d3db

commit 9b392d07381e6129a1f5e6280ed5b603a3b4d3db
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-05-07 22:13:29 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-01 00:44:51 +0000

    sysctl vm.objects: yield if hog
    
    (cherry picked from commit 350fc36b4cf896cbfce657a6dab600b26367a34a)
---
 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 9462e8753afb..5bbe7faed50b 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2585,6 +2585,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only)
 		kvo->kvo_structsize = roundup(kvo->kvo_structsize,
 		    sizeof(uint64_t));
 		error = SYSCTL_OUT(req, kvo, kvo->kvo_structsize);
+		maybe_yield();
 		mtx_lock(&vm_object_list_mtx);
 		if (error)
 			break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111010045.1A10jx4w005163>