From nobody Sun Oct 27 19:07:21 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 4Xc5cT4CGkz5bKsK; Sun, 27 Oct 2024 19:07:21 +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 4Xc5cT3jZXz4hKv; Sun, 27 Oct 2024 19:07:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730056041; 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=Rq8y5K1L2MMFgfHoojggPeI5qZHah43JohCpm1n8TEU=; b=t/sM+3pTaDba1OzsDK/MIh4XsZj9LH4ZAgajjaoyb3ut6PzDhQU8DZG7gT18Uk9IGgIGFo AS/8JVHgUwFxWrzst59sQ7Qay7aVnr6+RLQuC97J1VzuKpBX9ZM8+Fw6X6EsX5F0Hklm6R FmwGexyMCDJWuHSjem36tLTq1TOb8Texqs4oKPhJVbPLBaReBhRW1U2gz7kd3uGjPXx+dt N6/OQS7EZDvgJ5jM6k+mXOQl18KTHVrQbISQpG/OP7IStPTNywHU8J9NxpdRZfoq+OsDnM lnsb3C/r/A/250Qf4uYvTdih0Oxg4oX5LmFNWBgZIxyo66jCLWRdUZeqbiJkcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730056041; 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=Rq8y5K1L2MMFgfHoojggPeI5qZHah43JohCpm1n8TEU=; b=Xjz0nU7O2fN1teYUtvr5f4KH/V9yyQmIn1cSX7Up0wlkA5WEowGwVbyOL5/5+/N6Pwly2w 5az+EmSBsHYYUJNzmvGye+l0Dcck3E7Ll+yTKWOQTYpl+KO/wy+9BXTy7wcj3l3CY8Ox+M t14rXMnr1Jyh1vNLwyATtxGmzfsZ0AJ+ZIKE1an4VbqSk0U3k8eiDixyPGcPKUDRNleDK7 PY4fd0q/c1e1XtJg4VmusyoF5mc6qirSu87NmslfRWYho4waY7nz0g6OD8Jlvp5yEQFl2v 59CSyAJ/NBZ8clLPWda7jEzyCITDtK3jfyf4EqlKP4uAaYcURVNtIuiEMCy21w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730056041; a=rsa-sha256; cv=none; b=xsSjalvesWhXjZ/0lxJS4ecWXINeSg2gm5AzqWlJVSOhrr4JEAMsom7IrBSAhp2iho/OuA xWm8+k6l/bQ5rpPt/lNg/bUpW1IyBPw8fpRbyKX5sh0ZmQnDz16A7y1nvAZ6T2JLDDW2Wy lX/Lqf4PDKg8sL6j7SMhOT9As8KSsPYL3OQVs8ftKRFf/7mj4CTzzfZevyTvqwiTSFnE0u 4IqFxl3vzIqwOoHpcPYuXg62d0B95hB1kAGneZjpWX72ZosWh0JLe12SsFsSccj/T/c0JF 8u9tTZ1UDAGDSCM+OjO7d9t0O7X91C77uzSlboU7y+MikrW5rd7yvkeWF04iIw== 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 4Xc5cT3Jscz16WR; Sun, 27 Oct 2024 19:07:21 +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 49RJ7L3d014901; Sun, 27 Oct 2024 19:07:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49RJ7LHG014898; Sun, 27 Oct 2024 19:07:21 GMT (envelope-from git) Date: Sun, 27 Oct 2024 19:07:21 GMT Message-Id: <202410271907.49RJ7LHG014898@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Cox Subject: git: 2001bef84ba6 - main - vm: Eliminate unnecessary lock asserts 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: alc X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2001bef84ba64cee51abf91b5ad3aca071e75788 Auto-Submitted: auto-generated The branch main has been updated by alc: URL: https://cgit.FreeBSD.org/src/commit/?id=2001bef84ba64cee51abf91b5ad3aca071e75788 commit 2001bef84ba64cee51abf91b5ad3aca071e75788 Author: Alan Cox AuthorDate: 2024-10-27 17:40:43 +0000 Commit: Alan Cox CommitDate: 2024-10-27 19:03:52 +0000 vm: Eliminate unnecessary lock asserts There is no actual need for the VM object to be locked when initializing a VM page iterator. Reviewed by: dougm Differential Revision: https://reviews.freebsd.org/D47298 --- sys/vm/vm_page.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 054832e3f19a..57e5684b3178 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1715,7 +1715,6 @@ void vm_page_iter_init(struct pctrie_iter *pages, vm_object_t object) { - VM_OBJECT_ASSERT_LOCKED(object); vm_radix_iter_init(pages, &object->rtree); } @@ -1729,7 +1728,6 @@ vm_page_iter_limit_init(struct pctrie_iter *pages, vm_object_t object, vm_pindex_t limit) { - VM_OBJECT_ASSERT_LOCKED(object); vm_radix_iter_limit_init(pages, &object->rtree, limit); }