Re: svn commit: r356120 - head/sys/security/mac

2019-12-27 Thread Mateusz Guzik
On 12/27/19, Hans Petter Selasky wrote: > On 2019-12-27 12:33, Ronald Klop wrote: >> Wow, this looks like a winner. >> >> Ronald. > > Is this a spin-off from epoch methodology? > > It is possible to use epoch as a part of read mostly locking too. > epoch uses explicit fences which are a completel

Re: svn commit: r356120 - head/sys/security/mac

2019-12-27 Thread Hans Petter Selasky
On 2019-12-27 12:33, Ronald Klop wrote: Wow, this looks like a winner. Ronald. Is this a spin-off from epoch methodology? It is possible to use epoch as a part of read mostly locking too. The basic idea here is to have a variable/refcount which when set, fallback to a regular mutex during r

Re: svn commit: r356120 - head/sys/security/mac

2019-12-27 Thread Ronald Klop
On Fri, 27 Dec 2019 12:23:32 +0100, Mateusz Guzik wrote: Author: mjg Date: Fri Dec 27 11:23:32 2019 New Revision: 356120 URL: https://svnweb.freebsd.org/changeset/base/356120 Log: mac: use a sleepable rmlock instead of an sx lock If any non-static modules are loaded (and mac_ntpd tends to b

svn commit: r356120 - head/sys/security/mac

2019-12-27 Thread Mateusz Guzik
Author: mjg Date: Fri Dec 27 11:23:32 2019 New Revision: 356120 URL: https://svnweb.freebsd.org/changeset/base/356120 Log: mac: use a sleepable rmlock instead of an sx lock If any non-static modules are loaded (and mac_ntpd tends to be), the lock is taken all the time al over the kernel.