git: e6afd48804b8 - stable/13 - linuxkpi: Add down_write_nest_lock
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Apr 2022 15:16:21 UTC
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=e6afd48804b8364fcecd4fa11fd0a2fc9e39ffcb commit e6afd48804b8364fcecd4fa11fd0a2fc9e39ffcb Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-03-22 09:28:02 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> 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 */