From nobody Wed Apr 27 15:16:21 2022 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 B909C1AB15A8; Wed, 27 Apr 2022 15:16: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KpMln32GQz3ksk; Wed, 27 Apr 2022 15:16:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651072581; 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=bUHeXyenIBGeG7UU0f3ZVLXxswompZEd6OY0tk+5/tU=; b=ybujZ1qnpkKPj8gK0O2quYriQcfAIkD3leP57dZoTU+4XiJmJbK1bLH6cBhP0JkeOKAOA8 dS2iGUwmVtjDQ/CjxkJ0RiZVyOhAbsrB/8TgshFURD0jywurGqCkjNnpxafAcVk4vlBC27 WGrt0RCxJ3R1CWGybJeBeJ1e7CkE5pNqKJUgI65fpnpf+YblxW71//yECg9Gsex0NY5i3U gDMvwYt8HZMM+YcLyc5qzV4TsMTLPtZol9qBM7UgfcewY4tvgkRhGWo76JUeWF3lI0UHtU rR3otCiJ8g9L92Ht46ocUnHpBWum/+vBVeyen9ulJCl9U2cEaj867K8qGXH0VA== 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 1DC3526605; Wed, 27 Apr 2022 15:16:21 +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 23RFGLNC008031; Wed, 27 Apr 2022 15:16:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23RFGLW3008030; Wed, 27 Apr 2022 15:16:21 GMT (envelope-from git) Date: Wed, 27 Apr 2022 15:16:21 GMT Message-Id: <202204271516.23RFGLW3008030@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: e6afd48804b8 - stable/13 - linuxkpi: Add down_write_nest_lock 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/stable/13 X-Git-Reftype: branch X-Git-Commit: e6afd48804b8364fcecd4fa11fd0a2fc9e39ffcb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651072581; 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=bUHeXyenIBGeG7UU0f3ZVLXxswompZEd6OY0tk+5/tU=; b=ZZ3jvn+A9cfeqTUgnLRLK5YEFXiCuldUwg+tkIWkUDdtR7Qf2psUpqEAO19hFeHjZ2VEmY W5iesPxxLzfPp2uOMgaYqawxDuTaKscrayzElG4FZM9dkCm1/oW3qq3H/adCADB2XZsdcS 9F8Zn2Nsd/4djuDfhJ39RXbcs5ZyTm24bgFvC6rpjsUl0ccUt+kd7iwjOIURmBnCwGYE+e WET1PPRXFJsOVFHQHsP7dtlTw0oN4xvwpEhuFyTtnGlD+F7c1QnXlV67QVzRjeYLp8AcIW Ve2wB4AywvT2W48pHtOP7i6tAcXr4GiaeikrB2zNvO3GpDinTQc2PQWHQosd+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651072581; a=rsa-sha256; cv=none; b=QDBHsbkF06WsG3HIHooaTY9mjQxvPzuriv7RIvizAROlOqs0yM+fJ7gqu7w88rUepgYXxg 3e3PYEQdyU1F2HanD/904j2PrEtG5TIVAp1TxaSKo+b1u7nt9bgPcbOr3ByEdrNGZCzL3d z4lO9TgvSi7dKpuDCkejmbkBiF5T9nnHROvBLCS7Ftu+s49jZae5Slc46fPmZUhsY3VdxN ISb4S/sYNYhL8T/EPQ8aTqQMmAyPVmNHTuN4QhNse53mCSPJvVFSeYiWvb7uib5s+4Aaa4 dDR3J4lxnlHeO4NjG3fjcwH4tmpSe/LV3e/oa5HvZri0Rofq7307afuZOiW15w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=e6afd48804b8364fcecd4fa11fd0a2fc9e39ffcb commit e6afd48804b8364fcecd4fa11fd0a2fc9e39ffcb Author: Emmanuel Vadot AuthorDate: 2022-03-22 09:28:02 +0000 Commit: Emmanuel Vadot CommitDate: 2022-04-27 16:34:47 +0000 linuxkpi: Add down_write_nest_lock Simply calls down_write like in Linux (when CONFIG_DEBUG_LOCK_ALLOC isn't specified) Needed by drm v5.10 MFC after: 1 month Reviewed by: hselasky Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34642 (cherry picked from commit f9413897cb84499c76be140312e6ef2d24488040) --- sys/compat/linuxkpi/common/include/linux/rwsem.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linuxkpi/common/include/linux/rwsem.h b/sys/compat/linuxkpi/common/include/linux/rwsem.h index 1e9eae79dbb8..fc3580bc186e 100644 --- a/sys/compat/linuxkpi/common/include/linux/rwsem.h +++ b/sys/compat/linuxkpi/common/include/linux/rwsem.h @@ -51,6 +51,7 @@ struct rw_semaphore { #define downgrade_write(_rw) sx_downgrade(&(_rw)->sx) #define down_read_nested(_rw, _sc) down_read(_rw) #define init_rwsem(_rw) linux_init_rwsem(_rw, rwsem_name("lnxrwsem")) +#define down_write_nest_lock(sem, _rw) down_write(_rw) #ifdef WITNESS_ALL /* NOTE: the maximum WITNESS name is 64 chars */