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

Issue 6677048: CHROMIUM: verity: use atomic_set instead of atomic_cmpxchg in read_completed (Closed)

Created:
9 years, 9 months ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
Paul T, ups, Will Drewry
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Olof Johansson, msb+croskernel_chromium.org
Visibility:
Public.

Description

CHROMIUM: verity: use atomic_set instead of atomic_cmpxchg in read_completed When moving from the PENDING to READY state it is sufficient to use an atomic_set since we know the previous state MUST have been PENDING. In addition, there is a BUG_ON which verifies this. BUG=9752 TEST=Ran tests in verity.git. Ran platform_DMVerityCorruption on H/W. Change-Id: I3e7a2a8cdd909f85e232b77bc8190a7550461688 Signed-off-by: Mandeep Singh Baines <msb@chromium.org>; R=wad@chromium.org,taysom@chromium.org,ups@chromium.org Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=a191aac

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -8 lines) Patch
M drivers/md/dm-bht.c View 2 chunks +2 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Mandeep Singh Baines
9 years, 9 months ago (2011-03-15 16:20:35 UTC) #1
Will Drewry
This just seems to introduce a race in the BUG detection :) But that's probably ...
9 years, 9 months ago (2011-03-15 16:26:12 UTC) #2
Will Drewry
Actually, the only concern is if someone else updates that entry with an ERROR, but ...
9 years, 9 months ago (2011-03-15 16:29:36 UTC) #3
Mandeep Singh Baines
On Tue, Mar 15, 2011 at 9:26 AM, <wad@chromium.org> wrote: > This just seems to ...
9 years, 9 months ago (2011-03-15 17:45:38 UTC) #4
Will Drewry
On Tue, Mar 15, 2011 at 12:45 PM, Mandeep Singh Baines <msb@chromium.org> wrote: > On ...
9 years, 9 months ago (2011-03-15 18:50:46 UTC) #5
Paul T
9 years, 9 months ago (2011-03-15 20:45:40 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698