From nobody Fri May 17 05:59:14 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 4VgbrL5Zbnz5KVK2; Fri, 17 May 2024 05:59:14 +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 4VgbrL4lj0z4gMj; Fri, 17 May 2024 05:59:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715925554; 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=IPAZUtkBVjYQKPrI784opn/DoOM+4NgzeWTlD9wWDTo=; b=vlAa41LhkSUPK5WEFg/NNtKgESd+OLdmM4VCqJ4MY2oSCc04XLrV+x/UEmx5u4gB/rFC8U Rou7KB7WpW3ObZcf7KQVYMB2Sj/CrKVzlqaVQz82R8+oBdh4GRo2Rkc/M1ZV6pNBaCJJ9L 5irGy12N1PpcJw9SDjNlr/QvNFwguqvNuQS+5Mpo6MhE+HSTY8BR74rkXAU8trjWVR2zeu DOfreU1XzL7yj5CiABYuhtxuIjcEXpec/j4hibCI4cgmLjoCJA/Vp6kZ3cNAR43iX+vCbV TZgfjDDMMHvBBtWgI80XYAu6ZngBZwZa9W5HnjjyeniA+GlKG5Nm7BD5I7zSaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715925554; a=rsa-sha256; cv=none; b=iTte+WxPYZR0a3+yDorCFTRNZrFHItASCZ8kGYbkOLw6OoJTfeBozQKR3TrwPtU/6wQ+PI 6IopvIrqskHx7TQacLI+bIsf0i7jbbquOfTBfoNBKdEphQIAUCfUYhAjI7Dmez34RMsigd PjbhPbh47gqToDX3w5PSUvREGu+YiIfHKpoxdrhVvI1fVC+agRxpYpFmGP/NlUuDosPRbD NAKU79nFS5QCCMYoBM7dmDfnm0QS1MkDTfH4xt8zkwuhHqxpVvgOnWYKK21ykP847y54Fd fp8TxpRTYJe9mPDdsdK+++DIWxH4+EA37iPc3DF/uvtPvpPTMf1TMw4Fx5ah4g== 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=1715925554; 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=IPAZUtkBVjYQKPrI784opn/DoOM+4NgzeWTlD9wWDTo=; b=P1s15qwMmnZso9a9vJoMN3VsU5ymVqjGIYBPWH6YW+cCn9ZqrQam7saxrNxX3wpUR593Qd DhNlkIqpF7qdal3V96qZAzFD4xDDJxiT1ig8lRmTgpxHwraYgyxqj3FBPWWKjhAhwh+G5Z RYEAeSNqwE2ym9hEyzXPn03CV2vlZpija/5g2snTAC9JTmRLYphOTridjXf/eBnRNVwyba F45N2ENtL6GzI+04vq6cn43aeAkhv0rZWgwEMilvUwArEBRWfHgDh+qU6x/XGacP8wAxan Dkd43F4NNiUAmWWPQl74yz0nvM+Gs3HFqqx4zQIQ4KTtJc83lQb23pnuazVReQ== 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 4VgbrL4JGdzV9B; Fri, 17 May 2024 05:59:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44H5xEPa019903; Fri, 17 May 2024 05:59:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44H5xEm1019900; Fri, 17 May 2024 05:59:14 GMT (envelope-from git) Date: Fri, 17 May 2024 05:59:14 GMT Message-Id: <202405170559.44H5xEm1019900@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: a7b222db122e - main - linuxkpi: rwlock: Fix rwlock_init 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a7b222db122e99f587d87eeec303c8abc9aea04e Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=a7b222db122e99f587d87eeec303c8abc9aea04e commit a7b222db122e99f587d87eeec303c8abc9aea04e Author: Emmanuel Vadot AuthorDate: 2024-05-17 05:54:36 +0000 Commit: Emmanuel Vadot CommitDate: 2024-05-17 05:59:02 +0000 linuxkpi: rwlock: Fix rwlock_init Some linux code re-init some spinlock so add MTX_NEW to mtx_init. Reported by: rlibby Fixes: 5c0a1923486e ("linuxkpi: rwlock: Simplify code") --- sys/compat/linuxkpi/common/include/linux/rwlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/rwlock.h b/sys/compat/linuxkpi/common/include/linux/rwlock.h index 126b70c875c0..3030ec89ff1e 100644 --- a/sys/compat/linuxkpi/common/include/linux/rwlock.h +++ b/sys/compat/linuxkpi/common/include/linux/rwlock.h @@ -52,6 +52,6 @@ typedef struct rwlock rwlock_t; do { read_unlock(lock); } while (0) #define write_unlock_irqrestore(lock, flags) \ do { write_unlock(lock); } while (0) -#define rwlock_init(_l) rw_init_flags(_l, "lnxrw", RW_NOWITNESS) +#define rwlock_init(_l) rw_init_flags(_l, "lnxrw", RW_NOWITNESS | RW_NEW) #endif /* _LINUXKPI_LINUX_RWLOCK_H_ */