Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lock overlay.Driver.locker before creating a layer
It's _completely_ unclear to me why we need this driver-specific locking when the whole layerStore is locked before calling the driver; but if it makes any sense at all, and Driver.Remove is taking the lock, it seems that driver.create should take the lock as well. Note that additionalLayer.CreateAs is not holding Driver.locker over its modifications; this does not change that. Signed-off-by: Miloslav Trmač <[email protected]>
- Loading branch information