Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Issue 18129008: Clean up locking. (Closed)

Created:
7 years, 5 months ago by noelallen1
Modified:
7 years, 5 months ago
Reviewers:
binji
CC:
chromium-reviews, binji, Sam Clegg
Visibility:
Public.

Description

Clean up locking. 1- Move all kernel locks to KernelObject 2- Never take a kernel lock outside of KernelObject functions. 3- Rename locks to more accurately describe what they protect. 4- Never take more than one kernel lock at a time. 5- "Hide" CWD from KernelProxy, it always deals with relative paths. BUG=none NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211003

Patch Set 1 #

Patch Set 2 : move CWD #

Patch Set 3 : Fix errno #

Patch Set 4 : Fix comments #

Patch Set 5 : Merge with master #

Total comments: 36

Patch Set 6 : Fix naming, comments #

Total comments: 1

Patch Set 7 : Rename mount functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -162 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_handle.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_object.h View 1 2 3 4 5 3 chunks +40 lines, -16 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_object.cc View 1 2 3 4 5 6 6 chunks +111 lines, -39 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.h View 1 2 3 3 chunks +19 lines, -7 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc View 1 2 3 4 5 6 15 chunks +69 lines, -98 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io_test/kernel_proxy_test.cc View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
noelallen1
ptal This CL is a precursor to the Event/Epoll CLs to clean up locking and ...
7 years, 5 months ago (2013-07-10 18:52:34 UTC) #1
binji
https://codereview.chromium.org/18129008/diff/10001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/18129008/diff/10001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode41 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:41: std::string abs_targ = GetAbsPath(path); nit: how about just "abs_path" ...
7 years, 5 months ago (2013-07-10 21:24:33 UTC) #2
noelallen1
https://codereview.chromium.org/18129008/diff/10001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/18129008/diff/10001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode41 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:41: std::string abs_targ = GetAbsPath(path); On 2013/07/10 21:24:34, binji wrote: ...
7 years, 5 months ago (2013-07-10 22:11:07 UTC) #3
binji
lgtm https://codereview.chromium.org/18129008/diff/18001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/18129008/diff/18001/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode41 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:41: std::string abs_path = GetAbsPath(path); GetAbsParts?
7 years, 5 months ago (2013-07-10 22:16:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noelallen@chromium.org/18129008/23001
7 years, 5 months ago (2013-07-11 01:28:18 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 01:28:58 UTC) #6
Message was sent while issue was closed.
Change committed as 211003

Powered by Google App Engine
This is Rietveld 408576698