From nobody Fri Sep 20 14:03:55 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X9DdR6Zf0z5XJwm; Fri, 20 Sep 2024 14:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9DdR5vVQz49X4; Fri, 20 Sep 2024 14:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726841035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+RZSX+9Qw4IblT05O0gIWz6b6dro5pFQvNPR2gUu7Q4=; b=AvWia8mZHu7sKLS8lpTiZSirAOGt1p/Ml5BazTdfYqTIivwR/0hxciNNBMEZ39SN9wKoYT 4icGgtBfp0/+YqSjTS14VvTuTZVmbqyNT57+JF3DcdEMzCB4ylIlP/3t0o6n1T/bmvXeQP +m2vo0+KcUvJLTiQrmVxtx6it3YSQnZB2ZDYT7xN5weRJf5giyoT9H40a1ouLQ/5tTLmrV bv7/vtNDfbWI3OAYlen9XJOiZQ3KhOqfNtv3IKhxQ8r/NVdSVdv6gZXk4uharaOtjnYyjy jwaCD3Mq4JrGw6SSkyjLNpiOv2OjeKVe9GK2g/3aNTQA9idGD/xx4dzG+yNtGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726841035; a=rsa-sha256; cv=none; b=u3F2bV6YZ8XW9aUQO5C2r0tIPzJBiafGIwI50XHlnqot3eAZFtvJq2Vq6loPckYFx5QP5M snMRgAaMd017BZUEhtw3Kr54ZBHzq6Lxk3QOnGD6v+Pg1zoHghc2pORFZHRxaskxlSGVMs 2OOj19IguFUbA3NnDAJfEmDVkrTdv+diAzCTOAPQ2rmONEefaGYheseRbHMkEnvhsp6d/m 5Inm0hiapJmlSStYov3CN2DghfOaQKspsfU0IlRnHBgzILWL/ZnrEPNCDnolGSaBljl8mE XxPtB0GYMFvyU8an0nhwepLo6ZLGiK1CwhLmfpZYqwWGKP63gKjVk3vgsq+wlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726841035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+RZSX+9Qw4IblT05O0gIWz6b6dro5pFQvNPR2gUu7Q4=; b=LLtVci8OF7kAPVwTl+82KWVl6PshPnjOts3QFUCHtt84VsLTTW7zTTllBIwqwhTDCJaqsl JSExTfUBar1Ktb7qLz4I7O+czAzY4zAwPD9wPsup70hCiGisWPEnKUyxueOoX7IPINFupf o4d2A1vHF0oeUwLt8XdXaPaN1+vfv64dbbOuuuLH8tUmXkc+Al88diW9LsAhZu4EPXaDIf JjH9ZB1jLYq8UvG0pfRnK6qjCrtHUwroth/cGNVt+129dXjEs20ld6t2eZBDnHSDB8BpIn KVsqgYyXXqzoS2L7ICEnu1E53LrNxdZyMXC/fxXHIgmzrxVdvyBnCXTWQDTMtA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X9DdR5T4dzsnw; Fri, 20 Sep 2024 14:03:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48KE3thx061277; Fri, 20 Sep 2024 14:03:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KE3tZ9061274; Fri, 20 Sep 2024 14:03:55 GMT (envelope-from git) Date: Fri, 20 Sep 2024 14:03:55 GMT Message-Id: <202409201403.48KE3tZ9061274@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 40769168a5ee - main - pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 40769168a5ee227b96ea91768555eef332a0dc26 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=40769168a5ee227b96ea91768555eef332a0dc26 commit 40769168a5ee227b96ea91768555eef332a0dc26 Author: Konstantin Belousov AuthorDate: 2024-09-20 12:58:59 +0000 Commit: Konstantin Belousov 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;