Re: Extend the scope of socket lock in soo_stat()

2017-07-18 Thread Claudio Jeker
On Tue, Jul 18, 2017 at 08:42:51AM +0200, Martin Pieuchot wrote: > `so_state' and `so_rcv' need to be checked atomically, so extend the > scope of the lock. > > ok? OK claudio@ > Index: kern/sys_socket.c > === > RCS file:

Re: Extend the scope of socket lock in soo_stat()

2017-07-18 Thread Alexander Bluhm
On Tue, Jul 18, 2017 at 08:42:51AM +0200, Martin Pieuchot wrote: > `so_state' and `so_rcv' need to be checked atomically, so extend the > scope of the lock. > > ok? OK bluhm@ > > Index: kern/sys_socket.c > === > RCS file:

Extend the scope of socket lock in soo_stat()

2017-07-18 Thread Martin Pieuchot
`so_state' and `so_rcv' need to be checked atomically, so extend the scope of the lock. ok? Index: kern/sys_socket.c === RCS file: /cvs/src/sys/kern/sys_socket.c,v retrieving revision 1.30 diff -u -p -r1.30 sys_socket.c ---