Date: Wed, 23 Mar 2022 14:47:05 +0100 From: Emmanuel Vadot <manu@bidouilliste.com> To: Emmanuel Vadot <manu@FreeBSD.org> Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: f9413897cb84 - main - linuxkpi: Add down_write_nest_lock Message-ID: <20220323144705.f85617d8aa514e6d07989c8f@bidouilliste.com> In-Reply-To: <202203231339.22NDd2hm007005@gitrepo.freebsd.org> References: <202203231339.22NDd2hm007005@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 Mar 2022 13:39:02 GMT Emmanuel Vadot <manu@FreeBSD.org> wrote: > 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 Should have been https://reviews.freebsd.org/D34643, sorry. > --- > 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 */ -- Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220323144705.f85617d8aa514e6d07989c8f>