From nobody Thu Nov 14 19:41:41 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 4Xq9Wp0pfRz5d494; Thu, 14 Nov 2024 19:41:42 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xq9Wn69NXz41W7; Thu, 14 Nov 2024 19:41:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731613301; 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=QMiUwuXYfYhX6yktFzMqZWveO9ohxmQPKlxqeRrwXxc=; b=coKC6IR+JZZafnLL4RqN9VisqWy1z6eV8Jg6tid1L3xLaHp897N0JibT0KmOqrzSeaS60X ItTPRsMhXQJvD37uhgv5F+XX8zs3JtOnDI8E8Xd3Zz2s6IiWfs6fBSEFctSPHZQihwOgM1 ELfvk2M/Fd9SjSeaIV8iElMad07o/9Ir5Iy7vpzp8Bh9D5mV/ULxXZGnurMkEGXxm80zR/ UAJ5KNghLMWVmsmek9B2f8RFNGxFeZyRslZ1ZVKrXubiQ6NQ6+8P0z+oBW0r2oqS5mqwan cCEIr9lZegpOVzw3iIyNODNTEUCRKHEflS/vOASeH3/Ih9D2ejZbHmnhYymx2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731613301; 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=QMiUwuXYfYhX6yktFzMqZWveO9ohxmQPKlxqeRrwXxc=; b=O0nFw1lOEKcdPmZ7MHfasZmTswGi1NlSZpUmQ67bcFUmc8kn3sahMmC/aLdLwAo6NTJogk xK+QNyY6xSzJJweyPDa3iBUqSQtLhAsaDxAZMtf7augoipQz/QXV6b2ysXWHsl5L2YPloR NQINLm25J4JQPfif9fkYPfWBoxSxKID2Gi+b41GW2LKjD+MGBC/keBpgayNi8nGq3Z0nm/ cbt/oXMlQy9mwSsGfTj5JltiLGFvU8+daX8i0VFVKfz+eFQmPTtCirT6HGTurRjT441Lh6 U1KR01f8CkekNRAWM/w/Gj374x/fxqyGPBuxHkvn08v3q9Si3tb+NRoiDd2ztQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731613301; a=rsa-sha256; cv=none; b=OrBRGKqc6OxW/EsHnb1g+lkb3eURFDmh7FfJFc2KxLjM0VV3KoQU26HVnagfSGHuHwuXmn WxNP3FBET9YEoWna/mA/88dF93gl1CMYf3JxGXstzD5keE5ZQdwz710M/b/DlDApE5Lu31 C25K/WOD/WDh9zqzzLs/4WzBCbwSBNR688Icbjc9YnF+iduhV7vSyUYD1d5oiuI89jv/Zz cUIuvLc6nXIP4oMfWquwrYRiq6tbhAlykj/u9CYQjWAEGGfi812b2zPuWI4Veb36FUmzaM BzP23s63uMPY0FeE7tS2PVX/GF5O3zAxGnvLOqK19sZ3lYO/KGCSfxOKTA9ixQ== 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 4Xq9Wn5nKkzsJw; Thu, 14 Nov 2024 19:41:41 +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 4AEJffup037236; Thu, 14 Nov 2024 19:41:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AEJff2O037233; Thu, 14 Nov 2024 19:41:41 GMT (envelope-from git) Date: Thu, 14 Nov 2024 19:41:41 GMT Message-Id: <202411141941.4AEJff2O037233@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 20162e6f1c17 - main - rip6: don't lock the inpcb list 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: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 20162e6f1c176c906c6d9d99fc66f6b0ed37dc05 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=20162e6f1c176c906c6d9d99fc66f6b0ed37dc05 commit 20162e6f1c176c906c6d9d99fc66f6b0ed37dc05 Author: Gleb Smirnoff AuthorDate: 2024-11-14 19:39:12 +0000 Commit: Gleb Smirnoff CommitDate: 2024-11-14 19:39:12 +0000 rip6: don't lock the inpcb list There is no point in doing that when we operate on a particular inpcb. --- sys/netinet6/raw_ip6.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index b4421509ec62..8f1955164928 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -766,9 +766,7 @@ rip6_bind(struct socket *so, struct sockaddr *nam, struct thread *td) } NET_EPOCH_EXIT(et); INP_WLOCK(inp); - INP_INFO_WLOCK(&V_ripcbinfo); inp->in6p_laddr = addr->sin6_addr; - INP_INFO_WUNLOCK(&V_ripcbinfo); INP_WUNLOCK(inp); return (0); } @@ -806,14 +804,12 @@ rip6_connect(struct socket *so, struct sockaddr *nam, struct thread *td) return (error); INP_WLOCK(inp); - INP_INFO_WLOCK(&V_ripcbinfo); /* Source address selection. XXX: need pcblookup? */ NET_EPOCH_ENTER(et); error = in6_selectsrc_socket(addr, inp->in6p_outputopts, inp, so->so_cred, scope_ambiguous, &in6a, NULL); NET_EPOCH_EXIT(et); if (error) { - INP_INFO_WUNLOCK(&V_ripcbinfo); INP_WUNLOCK(inp); return (error); } @@ -821,7 +817,6 @@ rip6_connect(struct socket *so, struct sockaddr *nam, struct thread *td) inp->in6p_faddr = addr->sin6_addr; inp->in6p_laddr = in6a; soisconnected(so); - INP_INFO_WUNLOCK(&V_ripcbinfo); INP_WUNLOCK(inp); return (0); }