git: f9413897cb84 - main - linuxkpi: Add down_write_nest_lock
Date: Wed, 23 Mar 2022 13:39:02 UTC
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=f9413897cb84499c76be140312e6ef2d24488040 commit f9413897cb84499c76be140312e6ef2d24488040 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-03-22 09:28:02 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-03-23 13:37:53 +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 --- 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 */