Date: Sat, 27 Apr 2002 01:24:29 -0700 (PDT) From: Seigo Tanimura <tanimura@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_descrip.c uipc_socket2.c src/sys/net rtsock.c src/sys/netinet accf_data.c accf_http.c tcp_input.c src/sys/netkey keysock.c src/sys/sys filedesc.h socketvar.h Message-ID: <200204270824.g3R8OTB87633@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
tanimura 2002/04/27 01:24:29 PDT Modified files: sys/kern kern_descrip.c uipc_socket2.c sys/net rtsock.c sys/netinet accf_data.c accf_http.c tcp_input.c sys/netkey keysock.c sys/sys filedesc.h socketvar.h Log: Add a global sx sigio_lock to protect the pointer to the sigio object of a socket. This avoids lock order reversal caused by locking a process in pgsigio(). sowakeup() and the callers of it (sowwakeup, soisconnected, etc.) now require sigio_lock to be locked. Provide sowwakeup_locked(), soisconnected_locked(), and so on in case where we have to modify a socket and wake up a process atomically. Revision Changes Path 1.140 +2 -0 src/sys/kern/kern_descrip.c 1.88 +69 -13 src/sys/kern/uipc_socket2.c 1.70 +3 -1 src/sys/net/rtsock.c 1.4 +5 -2 src/sys/netinet/accf_data.c 1.6 +10 -4 src/sys/netinet/accf_http.c 1.154 +5 -1 src/sys/netinet/tcp_input.c 1.11 +3 -1 src/sys/netkey/keysock.c 1.42 +15 -2 src/sys/sys/filedesc.h 1.77 +43 -10 src/sys/sys/socketvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204270824.g3R8OTB87633>