Date: Tue, 1 Mar 2005 13:14:33 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_carp.c Message-ID: <200503011314.j21DEXKv053604@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glebius 2005-03-01 13:14:33 UTC FreeBSD src repository Modified files: sys/netinet ip_carp.c Log: Add more locking when reading/writing to carp softc. When carp softc is attached to a parent interface we use its mutex to lock the softc. This means that in several places like carp_ioctl() we lock softc conditionaly. This should be redesigned. To avoid LORs when MII announces us a link state change, we schedule a quick callout and call carp_carpdev_state_locked() from it. Initialize callouts using NET_CALLOUT_MPSAFE. Sponsored by: Rambler Reviewed by: mlaier Revision Changes Path 1.18 +140 -31 src/sys/netinet/ip_carp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503011314.j21DEXKv053604>