Re: poll(2) vs NET_LOCK()

2017-02-21 Thread Alexander Bluhm
On Tue, Feb 21, 2017 at 12:07:59PM +0100, Martin Pieuchot wrote: > Do not grab the NET_LOCK() when polling on unix domain sockets. This > was the reason for the "X freeze" reported by pirofti@. > > ok? OK bluhm@ > > Index: kern/sys_socket.c > ===

Re: poll(2) vs NET_LOCK()

2017-02-21 Thread Theo Buehler
On Tue, Feb 21, 2017 at 12:07:59PM +0100, Martin Pieuchot wrote: > Do not grab the NET_LOCK() when polling on unix domain sockets. This > was the reason for the "X freeze" reported by pirofti@. > > ok? Yes, indeed, this fixes the freeze on both, my iwn and my iwm. ok > > Index: kern/sys_socke

poll(2) vs NET_LOCK()

2017-02-21 Thread Martin Pieuchot
Do not grab the NET_LOCK() when polling on unix domain sockets. This was the reason for the "X freeze" reported by pirofti@. ok? Index: kern/sys_socket.c === RCS file: /cvs/src/sys/kern/sys_socket.c,v retrieving revision 1.29 diff -