Re: Serialize kqueue's internals with a mutex

2021-06-03 Thread Visa Hankala
On Thu, May 20, 2021 at 01:56:24PM +, Visa Hankala wrote: > This patch adds a mutex that serializes access to a kqueue. As a result, > most of kqueue's internals should become safe to run without the kernel > lock. In principle, the patch should allow unlocking kevent(2). > > Some notes: > >

Serialize kqueue's internals with a mutex

2021-05-20 Thread Visa Hankala
This patch adds a mutex that serializes access to a kqueue. As a result, most of kqueue's internals should become safe to run without the kernel lock. In principle, the patch should allow unlocking kevent(2). Some notes: * The existing uses of splhigh() outline where the mutex should be held. *