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

Issue 12223075: Make SimpleEntryImpl::Doom() completely asynchronous. (Closed)

Created:
7 years, 10 months ago by gavinp
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Make SimpleEntryImpl::Doom() completely asynchronous. Over in comments on https://codereview.chromium.org/12192005/ , pasko pointed out that POSIX file semantics allow a fully asynchronous Doom, which is nice, since as Ricardo has pointed out Doom is often called while operations are in flight, and users expect results. This CL uses that feature to make the Doom operation asynchronous. Note that the existing entry continues to work until closed. Note: this CL is based on https://codereview.chromium.org/12226095/ and cannot land until after that CL lands. This issue is upstream of https://codereview.chromium.org/12277004/ (make Close() asyncronous) and blocks it from landing. R=rvargas@chromium.org,felipeg@chromium.org,pasko@chromium.org,willchan@chromium.org BUG=173392 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184504

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase only #

Patch Set 3 : moar rebase #

Patch Set 4 : remediate + invert conditional logic #

Patch Set 5 : fix merge #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : merged and clear to land #

Patch Set 8 : rebase & clear to land #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -35 lines) Patch
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 3 chunks +16 lines, -20 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
gavinp
Thanks Egor for the suggestion. Ricardo, you are probably happy to see the back of ...
7 years, 10 months ago (2013-02-11 20:20:05 UTC) #1
felipeg
lgtm https://chromiumcodereview.appspot.com/12223075/diff/1/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/12223075/diff/1/net/disk_cache/simple/simple_entry_impl.cc#newcode177 net/disk_cache/simple/simple_entry_impl.cc:177: #if defined(OS_WIN) For windows we could fallback to ...
7 years, 10 months ago (2013-02-12 13:36:55 UTC) #2
pasko-google - do not use
lgtm
7 years, 10 months ago (2013-02-12 14:02:26 UTC) #3
gavinp
Thanks for the reviews! I saw I had this logic wrong: use the POSIX logic ...
7 years, 10 months ago (2013-02-12 16:36:30 UTC) #4
felipeg
You are right, Better not having parallel implementations now. LGTM On Tue, Feb 12, 2013 ...
7 years, 10 months ago (2013-02-12 16:38:27 UTC) #5
rvargas (doing something else)
https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc#newcode78 net/disk_cache/simple/simple_entry_impl.cc:78: // This call to static SimpleEntryImpl::DoomEntry() will just erase ...
7 years, 10 months ago (2013-02-13 03:23:46 UTC) #6
felipeg
https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc#newcode78 net/disk_cache/simple/simple_entry_impl.cc:78: // This call to static SimpleEntryImpl::DoomEntry() will just erase ...
7 years, 10 months ago (2013-02-13 13:47:36 UTC) #7
rvargas (doing something else)
On 2013/02/13 13:47:36, felipeg1 wrote: > https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc > File net/disk_cache/simple/simple_entry_impl.cc (right): > > https://codereview.chromium.org/12223075/diff/11002/net/disk_cache/simple/simple_entry_impl.cc#newcode78 > ...
7 years, 10 months ago (2013-02-13 19:22:53 UTC) #8
gavinp
Ricardo, How's this looking?
7 years, 10 months ago (2013-02-14 15:54:09 UTC) #9
rvargas (doing something else)
lgtm
7 years, 10 months ago (2013-02-14 20:31:49 UTC) #10
rvargas (doing something else)
Same thing about adding the bug to the description.
7 years, 10 months ago (2013-02-14 20:32:38 UTC) #11
gavinp
7 years, 10 months ago (2013-02-25 22:52:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #10 manually as r184504 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698