CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2016/11/15 04:57:02

Modified files:
        sys/kern       : uipc_socket2.c 
        sys/sys        : socketvar.h 

Log message:
Bring back the SB_LOCK and SB_WANT flags to lock the socket buffers
in process context.  The read/write lock introduced in rev 1.64
would create lock ordering problems with the upcoming SOCKET_LOCK()
mechanism.  The current tsleep() in sblock() must be replaced with
rwsleep(&socketlock) later.  The sb_flags are protected by
KERNEL_LOCK().  They must not be accessed from interrupt context,
but nowadays softnet() is not an interrupt anyway.
OK mpi@

Reply via email to