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.

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
kernel.git Review URL: http://codereview.chromium.org/6677048

TBRing. Already LGTMed and committed to kernel.git

Change-Id: I1a199fc8f27f315bd98baa98f5fca0bb0fb4a556

R=wad@chromium.org,taysom@chromium.org,ups@chromium.org

Review URL: http://codereview.chromium.org/6721019
1 file changed