From nobody Sun Dec 11 03:28:18 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 4NV9Fb290lz4kJxC; Sun, 11 Dec 2022 03:28:19 +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 4NV9Fb0ncbz3K0T; Sun, 11 Dec 2022 03:28:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670729299; 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=nwLpA2pZa7UQhr9yX6zYwd0yaKfxgbhOMKm6YYb2ar0=; b=F55LgvAu2IEzFnfASlaoN8mEV0a39A3hXOJaFkqSF5xNmfKMcgxDIkkDTwZqUWiZ5pqY6o BVx13BgjBLm0GTmG/IxTIgMjsfxaCgF47R4GMy3IBH4NyhPKbSadycD3qz3LsuGdSzLKcY 32Bvw6xkaR2YHPCXzqpUogFi4iDrFBObgaHXpfwpllZRgbHPDOnI0KgiwOdERIRxnYUlbE vslqM3dJ8A5Cd/j044dthXE41HNa94XHWYC6I/sPDERpNk5/6nLKbDhbJ381YoXdBkVaEz hSmwBIrg6rszssfp0UrWK06ZTarBdMY3VkqD9mr0nF9Wqpjx6srK7iS43Dp6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670729299; 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=nwLpA2pZa7UQhr9yX6zYwd0yaKfxgbhOMKm6YYb2ar0=; b=Wb95v1s2L5wOxYUpv4dn16HrINtfjZ0+fSVUd9GmwlGQ9Qt5NqMfSs32SmuZmpuQpL7MLA 3FveK3PVSK99mxxiVecJeyzatNqO+MiIExfya7U7DfWI/94tjjdWsuiCztbLY9+vbXNLAS Hb9PZ9cHbRlOObz/Y7ag6CmzV0xx+Xe68iD5EJbcS2JHWuchxA/E05BXjXGR9GQzfJH+3K M/bYfzqiDrfZqjg4MlSqUWIwnb0mFt7TYa0mye4X6C2fOQ0BU1ohbl5PpQkgTlW3Uxxg50 ZNxDEcWG2+Y28UD44rMf3TBg+eHYQaXS165aM/hfWWZC01JhFpuKbV6vAklNuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670729299; a=rsa-sha256; cv=none; b=aedm3K00G+5kGa1xwres6wTVgIrOjjs13Hui2nx9Xw+OBq90/Ul9IO0q7UKlhWTUBDkou7 VHNrYuWs6haHh9KIxfZ3WZVA4/K5ObjpWtbzFbS8/cszd9xKDId05gwgP+ahTy/08EKMye vGyTD1ow/hSqqZzSo0C5AX96iFIbvv6MJTbyezr7QMKBG9qKpF8bzmjt9k37sD4i97znma 5LjEauL/Jz97FIjOrcH1NlqFOdbov14xF6oCZdqXnoY7N2ICm4/gm+t7gdyWv5jlr/Ofp6 Gb8ZjmGLk/7SoPrJKIO9YgcKsdlP80A59Y7nT/st2+zvKI2Whn1c7ZC4fdJLYA== 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 4NV9FZ6yqLzgYS; Sun, 11 Dec 2022 03:28:18 +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 2BB3SIWY048622; Sun, 11 Dec 2022 03:28:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BB3SIjo048621; Sun, 11 Dec 2022 03:28:18 GMT (envelope-from git) Date: Sun, 11 Dec 2022 03:28:18 GMT Message-Id: <202212110328.2BB3SIjo048621@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: bc2ccf0e4f8f - main - mtx: retire PARTIAL_PICKUP_GIANT 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: bc2ccf0e4f8f655c00ab5cb344bdff0ee9546060 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=bc2ccf0e4f8f655c00ab5cb344bdff0ee9546060 commit bc2ccf0e4f8f655c00ab5cb344bdff0ee9546060 Author: Mateusz Guzik AuthorDate: 2022-12-11 03:26:23 +0000 Commit: Mateusz Guzik CommitDate: 2022-12-11 03:26:23 +0000 mtx: retire PARTIAL_PICKUP_GIANT It does not appear to have ever been used. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/sys/mutex.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 04e2c823541a..0d5123da3b32 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -509,16 +509,13 @@ do { \ } #define PICKUP_GIANT() \ - PARTIAL_PICKUP_GIANT(); \ -} while (0) - -#define PARTIAL_PICKUP_GIANT() \ mtx_assert(&Giant, MA_NOTOWNED); \ if (__predict_false(_giantcnt > 0)) { \ while (_giantcnt--) \ mtx_lock(&Giant); \ WITNESS_RESTORE(&Giant.lock_object, Giant); \ - } + } \ +} while (0) #endif struct mtx_args {