Transitioning if_addr_lock to an rwlock

Ermal Luçi eri at freebsd.org
Tue Dec 27 10:56:17 UTC 2011


2011/12/27 Gleb Smirnoff <glebius at freebsd.org>:
> On Thu, Dec 22, 2011 at 11:30:01AM -0500, John Baldwin wrote:
> J> You can find the patch for 8.x at
> J> http://www.freebsd.org/~jhb/patches/if_addr_rwlock.patch
>
> Just my two pennies: for head/ patching if ip_carp.c should
> be straightforward:
>
> 1) Using W in carp_alloc_if() and carp_free_if().
> 2) Using R everywhere else.
>

I would not say that is true!

Look at this https://github.com/bsdperimeter/pfsense-tools/blob/master/patches/RELENG_8_1/carp_livelock_fixes.diff
I already did this for carp on pfSense for 8.x and should be the same for HEAD.
That has undergone testing and catching up where R vs W.

> --
> Totus tuus, Glebius.
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"



-- 
Ermal


More information about the freebsd-net mailing list