[ovs-dev] [thread 12/15] ofproto-dpif: Lock rules to prevent eviction.
Ben Pfaff
blp at nicira.com
Fri Aug 9 21:03:41 UTC 2013
On Fri, Aug 09, 2013 at 02:00:31PM -0700, Ethan Jackson wrote:
> > The new failure case in ofproto_delete_flow() looks like a problem for
> > fail-open, which never retries because previously it could never fail.
> > Is there a reason we can't block waiting for the write lock here? The
> > uses of ofproto_delete_flow() (in-band, fail-open) are not performance
> > sensitive fast paths.
> >
> > Ditto for ofproto_flush__().
>
> This is totally fine. I've changed it to just take the lock. I also
> noticed that I had messed up ofproto_flush__() and only destroyed it
> if rule->pending instead of the other way around.
>
> > I think that some of the changes here are because Clang can't annotate
> > a return value as acquired. If so, would you mind mentioning that in
> > the commit message?
>
> Sure, I'll send a new version of the patch with an updated commit
> message and the other changes.
Thanks on both counts.
More information about the dev
mailing list