-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove locker.Locker from drivers/overlay #1214
Conversation
LGTM |
There are two other users of Actually… |
In all call paths, the layerStore owning the driver is expected to be locked, so, so this seems redundant. See also containers#1140 (comment) . Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac [I could be wrong] Not a review at all , will try to review this in morning but just a comment if someone reviews this
I guess if layerstore is locked we might not have to worry but just leaving a comment here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sure. The question if there is any path how that could happen. I.e.
|
is it supported/possible to call the driver code without going through c/storage.Store. I wouldn’t know. I would say no, we don't support this. |
ah I see I don't think this is an issue then since if layerstore is locked then there might be no issue for any race. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In all call paths, the layerStore owning the driver is expected to be locked, so, so this seems redundant.
See also #1140 (comment) .