From nobody Sun Dec 11 02:47:55 2022 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 4NV8M00Fkpz4kDS4; Sun, 11 Dec 2022 02:47:56 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NV8Lz6pxYz3GDZ; Sun, 11 Dec 2022 02:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670726876; 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=NUELFQO0WficuiSvjjvlTdaE1BxLcYCNDNeYo5vtp50=; b=Mtjlfa9tznN7GS8J2jQXxCHmb4UcO/e3032Eeb/YCClEFQ0Jfnduq4NnYlDHc0YEL2e5Ix SToZU9Occwzk4k9MF8qCr6dF3/Asqzt4t7uLWOlGJNR6ROfqIAEtPUR46Ryci0LCEqTlZK FHTauPu4sXnh5J3/0whHrd4TRJd4JV9+nWqbRaZsZsjaZ6AL1DEpDU7ZPceKYWGB7zeQ7/ 0PhB/BfsVvjKgl9itmT2JaE7H5dWfghqSE3AgLaCBykzmnrjpx7AjWnPNnDhNrVEQuunH6 DA3A+6nYYY0fz+pfLQhLFpxiyh6v/QDfeMWSME7gSlFG1EKF1fgp5MQO/IFq5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670726876; 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=NUELFQO0WficuiSvjjvlTdaE1BxLcYCNDNeYo5vtp50=; b=rSZRJD6k1E8q4vNBY3HWhhXipQs5lytwSipW9Zv6/JenCmi20vdCQfnlQLVetY+cSpgfPw JICTnyW96oZUXnrZ8y+CdaQ4TgTngcJoQ8W1XhynOuNPM5B9qxmEZmfAzbVF3FSQi70HOH qojMoCE7MmRM9dVZReGnni0Jd5Jyx33BjfFQj+OGQmuGNX8CHuaPzo1y4Yyz+NOr2eNskJ UbOMtGsXpBk+3v0XW9EsMCB+OnzMS5QZBJrjuZb0yg+/tgYuCD4mgbhGSJ4B5IvnfKID8j v82+hcLvKYbcV3TAoPJlCHLewJeuvXZuLFIH6VjWIjQrrQfspXpDpu6QqQtqXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670726876; a=rsa-sha256; cv=none; b=VTQPKKdJ1JWJhQQQUfmEskt/iExbqcKaSTzhf3uwK81rTLEiNjgy36Qw5FdBoadUuo7ONx bbEdLCyRCOAmwvQptqyhh+kGp8uehFsgRaP8P0m7R5fysggA0r2gzXN9DTHWI3HnGx9Wmy DKbplek2sQD28ZALiHLvJioKliMmeKZyVVU+/PYpS2gjndiVO7obG9egXp6bR4qLhi7DzV zPVcmsJBd4qnU+6HJ5npy0bR0rxwMM505ctIrlh03+e9qpf9dAXvI/w8L0/+9JaA6HJb8A mHG4/uamIZrukmlshCRwH7SGwVv5/N4dwpHEwjsNCqJQdDdOMK8CaGAaIbCy/w== 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 4NV8Lz5vsRzdq5; Sun, 11 Dec 2022 02:47:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BB2lt4r089924; Sun, 11 Dec 2022 02:47:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BB2ltrm089923; Sun, 11 Dec 2022 02:47:55 GMT (envelope-from git) Date: Sun, 11 Dec 2022 02:47:55 GMT Message-Id: <202212110247.2BB2ltrm089923@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: ebdf27b6f367 - main - uipc: remove accept_mtx 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ebdf27b6f367773d7d8d219896198d84f6e69904 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=ebdf27b6f367773d7d8d219896198d84f6e69904 commit ebdf27b6f367773d7d8d219896198d84f6e69904 Author: Mateusz Guzik AuthorDate: 2022-12-11 02:47:07 +0000 Commit: Mateusz Guzik CommitDate: 2022-12-11 02:47:07 +0000 uipc: remove accept_mtx It is unused since 779f106aa169256b ("Listening sockets improvements.") Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/uipc_socket.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 7e1d2c910dbd..6c09b14c4f72 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -251,13 +251,6 @@ static int numopensockets; SYSCTL_INT(_kern_ipc, OID_AUTO, numopensockets, CTLFLAG_RD, &numopensockets, 0, "Number of open sockets"); -/* - * accept_mtx locks down per-socket fields relating to accept queues. See - * socketvar.h for an annotation of the protected fields of struct socket. - */ -struct mtx accept_mtx; -MTX_SYSINIT(accept_mtx, &accept_mtx, "accept", MTX_DEF); - /* * so_global_mtx protects so_gencnt, numopensockets, and the per-socket * so_gencnt field.