Date: Fri, 20 Sep 2024 14:03:55 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 40769168a5ee - main - pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed Message-ID: <202409201403.48KE3tZ9061274@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=40769168a5ee227b96ea91768555eef332a0dc26 commit 40769168a5ee227b96ea91768555eef332a0dc26 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-09-20 12:58:59 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-09-20 14:03:45 +0000 pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed Submitted by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/sys_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index ab045c718e75..2b81d08f7077 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -595,6 +595,7 @@ retry: if (priv_check(curthread, PRIV_PIPEBUF) != 0 && maxpipekva / 100 * (100 - pipebuf_reserv) < amountpipekva + size) { vm_map_unlock(pipe_map); + chgpipecnt(cpipe->pipe_pair->pp_owner->cr_ruidinfo, -size, 0); if (cpipe->pipe_buffer.buffer == NULL && size > SMALL_PIPE_SIZE) { size = SMALL_PIPE_SIZE;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409201403.48KE3tZ9061274>