Re: [rfc] migrate lagg to an rmlock

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Sat, 24 Aug 2013 12:27:41 -0700
Hihi,

There's two parts to my patch:

* one is migrating the rwlock to rmlock - not because of counters, but
because the lock is protecting consistency when changing the lagg config
* one is adding a new lock specifically to ensure that the callout is
atomically created/called/destroyed

The latter has nothing to do with the actual counters - they're already
using the atomic counter API, so the lock doesn't need to be held just to
read them for _counter_ consistency. It's just held to make sure the
callout is never called parallel to the destruction of the lagg interface.



-adrian
Received on Sat Aug 24 2013 - 17:27:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:40 UTC