forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revalidator: Refactor ukey creation/lookup.
This patch refactors the code around ukey creation and lookup to simplify the code for callers. A new function ukey_acquire() combines these functions and attempts to acquire a lock on the ukey. Failure to acquire a lock on the ukey is usually a sign that another thread is handling the same flow concurrently, which means the flow does not need to be handled anyway. Signed-off-by: Joe Stringer <[email protected]> Acked-by: Ethan Jackson <[email protected]>
- Loading branch information
1 parent
2608616
commit feca8bd
Showing
1 changed file
with
43 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters