Date: Tue, 15 Jun 2004 04:13:59 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net raw_cb.c raw_cb.h raw_usrreq.c Message-ID: <200406150413.i5F4Dxut022530@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2004-06-15 04:13:59 UTC FreeBSD src repository Modified files: sys/net raw_cb.c raw_cb.h raw_usrreq.c Log: Lock down rawcb_list, a global list of control blocks for raw sockets, using rawcb_mtx. Hold this mutex while modifying or iterating over the control list; this means that the mutex is held over calls into socket delivery code, which no longer causes a lock order reversal as the routing socket code uses a netisr to avoid recursing socket -> routing -> socket. Note: Locking of IPsec consumers of rawcb_list is not included in this commit. Revision Changes Path 1.29 +3 -0 src/sys/net/raw_cb.c 1.18 +1 -0 src/sys/net/raw_cb.h 1.34 +6 -0 src/sys/net/raw_usrreq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406150413.i5F4Dxut022530>