Re: Move 'struct kevent' storage to the stack

2017-10-10 Thread Alexander Bluhm
On Mon, Oct 09, 2017 at 11:48:56AM +0200, Martin Pieuchot wrote: > 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. I am currently running the regression tes

Re: Move 'struct kevent' storage to the stack

2017-10-09 Thread Mark Kettenis
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)

Re: Move 'struct kevent' storage to the stack

2017-10-09 Thread Martin Pieuchot
gt; 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

Re: Move 'struct kevent' storage to the stack

2017-10-09 Thread Mark Kettenis
) 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. &

Move 'struct kevent' storage to the stack

2017-10-09 Thread Martin Pieuchot
call. 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? Index: kern/kern_event.c === RCS file: /cvs/src/sys/kern/