> Date: Mon, 9 Oct 2017 12:06:53 +0200 > From: Martin Pieuchot <[email protected]> > > On 09/10/17(Mon) 11:55, Mark Kettenis wrote: > > > Date: Mon, 9 Oct 2017 11:48:56 +0200 > > > From: Martin Pieuchot <[email protected]> > > > > > > This is the first step to allow kqueue_scan() to be executed in > > > parallel. I'm currently focusing on data structure ownership with > > > regard to sleep. I don't plan to get rid of the KERNEL_LOCK() for > > > the moment. I don't think it makes sense unless we can unlock the > > > kevent(2) syscall. > > > > > > The diff below move 'struct kevent' storage to the stack. This is > > > the simplest way to make it mp-safe. > > > > > > This has been tested as part of a larger diff by many. > > > > > > Ok? > > > > How big (in bytes) are the arrays you're putting on the stack? > > 256 bytes on amd64: > > sizeof(struct kevent) * KQ_NEVENT > > 32 * 8
In that case; ok kettenis@
