Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn/namespace: fix some namespace locking issues
First, updateNamespace() didn't have locking for oc.namespaceMutex Introduced by c3def15 (PR ovn-kubernetes#885). Second, getNamespaceLock() didn't protect against concurrent access of oc.namespaceMutex when it checked it the second time. That's fishy anyway; we serialize Namespace events from the watch factory and getNamespaceLock() is only called from event handler functions, so it doesn't seem possible for the namespace to be deleted between grabbing these two locks. Signed-off-by: Dan Williams <[email protected]>
- Loading branch information