DescriptionCHROMIUM: 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 #
Messages
Total messages: 6 (0 generated)
|