Generic driver updates routes on host according to the tap
interfaces created for use by share servers. That code
should be within a lock to prevent a thread failing to delete
a route previously listed and already deleted by another thread.
This change moves an existing lock to the function that
performs route changes while also covering the function
that had the lock before.
Reviewed: https:/ /review. openstack. org/361473 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=3e96712c47d d490a4321606903 3927ff1c73feb5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3e96712c47dd490 a43216069033927 ff1c73feb5
Author: Rodrigo Barbieri <email address hidden>
Date: Fri Aug 26 18:13:00 2016 -0300
Fix race condition updating routes
Generic driver updates routes on host according to the tap
interfaces created for use by share servers. That code
should be within a lock to prevent a thread failing to delete
a route previously listed and already deleted by another thread.
This change moves an existing lock to the function that
performs route changes while also covering the function
that had the lock before.
Closes-bug: #1617461
Change-Id: I798e5d9b0bc9eb efc8661d0ade720 c60303cf484