From nobody Fri Sep 20 21:09:27 2024 X-Original-To: dev-commits-src-all@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 4X9Q4R5Vvqz5X4hb; Fri, 20 Sep 2024 21:09:27 +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 4X9Q4R2s6Wz4m26; Fri, 20 Sep 2024 21:09:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726866567; 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=smYR+YBbyB8SzpUuIR4sFkBzTLwqYRNCcAhqTwu/+ws=; b=NVeevzfj+zz3cWu8tXF5Nn4CylKK+JzGBDOLtSSnJdJ+i5WMDJPF70qxXB8Byd9b36H3LW NZsTZ+0NepObm+zHwUBgclBIeGJnFpx702BEhAvABRsAxqg8LIwPeVoNYbYQBzNseeZRH9 2a5fh4+JnTZxf6NJgb7uTyif7siprQI2Dj2TRFgXpwWyqO93SVcwH3Mju6a5WScA8HS0is vqZ4K5LVONcUJ2rnSyTR6/5IX2EmlupDaBXeZXIZSVR/55bNYXGWOyk9K0hOXaY+MxM1JW emqcqPHdWFKBApYs6PzMLQx3Pmd7z+ovA3g+8s2LrE+qa/Rtf6B6XzcwNRYqAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726866567; a=rsa-sha256; cv=none; b=xLJLSMOJkdb4B1gbuF2oUcQF3u9kYsOm1MX7uMc0FU/MFQ2hQXJFcObspwerc9iHeBeoRH Pkjh6USWrOPLStoeL3Vo5IK/EsTxMN2EQxCuTKJtWpH052WtmdCdGU4OkErS74OHIMJq9Y lISakTkmrVgup869wMuy6W/kdn3S2M6b8R/EOLt+r7sd0i/HgRDSe3orj5mbyclifTzGtm 2+GuoK6Zn/7zXS4rC8C8ZQiWKdJqdD+sBIpQNbLpajmMu7VnkB9vkeZV4AvJwDrJMoGrxV LWdGEgPp8GGFJW8V9Nd39SivDycsUDMyIdmhrF98e20iU+oequ9uORzVn1LLPA== 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=1726866567; 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=smYR+YBbyB8SzpUuIR4sFkBzTLwqYRNCcAhqTwu/+ws=; b=nN/rzm129Xxkoq6q9QahqQroo1JBCMQydxlgi6rDF9d13euGj8Bod+XulgvPUrRH29Qsrb wwm1ygg3O/cdlGA10gXRx6X7onZv8S1Ii6i57M4R0kvataM8v+YSH7djysvrOq76PGvkR8 9+iZHtnQnOP+6HpGGzbJCZpTRenmB0nI8oACfcjWlVU19mBdJgmDfQg569XAlqc15BMXsI imcYo3DyiuU3p+PW15mEEhlJoBsqVD/Kd/plLm54MJe6WhWv9SdXvbf5623LPJHa2wI+H6 U4qV1Let3k2B4k4SxSqtPRfBxG84vTTBAWu096qSBjo4YJIjZCnbl9oXvs9Fcg== 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 4X9Q4R2LFxz151X; Fri, 20 Sep 2024 21:09:27 +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 48KL9RMU078680; Fri, 20 Sep 2024 21:09:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KL9RZ1078677; Fri, 20 Sep 2024 21:09:27 GMT (envelope-from git) Date: Fri, 20 Sep 2024 21:09:27 GMT Message-Id: <202409202109.48KL9RZ1078677@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: a52b30ff98cd - main - sys_pipe: consistently use cr_ruidinfo for accounting of pipebuf List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: a52b30ff98cdab82af140285fa7fcdf1036fef27 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a52b30ff98cdab82af140285fa7fcdf1036fef27 commit a52b30ff98cdab82af140285fa7fcdf1036fef27 Author: Konstantin Belousov AuthorDate: 2024-09-20 18:48:19 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-20 21:08:51 +0000 sys_pipe: consistently use cr_ruidinfo for accounting of pipebuf Tested by: yasu Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/sys_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 2b81d08f7077..6a5d150423bc 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1677,7 +1677,7 @@ pipe_free_kmem(struct pipe *cpipe) if (cpipe->pipe_buffer.buffer != NULL) { atomic_subtract_long(&amountpipekva, cpipe->pipe_buffer.size); - chgpipecnt(cpipe->pipe_pair->pp_owner->cr_uidinfo, + chgpipecnt(cpipe->pipe_pair->pp_owner->cr_ruidinfo, -cpipe->pipe_buffer.size, 0); vm_map_remove(pipe_map, (vm_offset_t)cpipe->pipe_buffer.buffer,