Signed-off-by: Junchang Wang <junchangwang@xxxxxxxxx> --- CodeSamples/defer/seqlocktorture.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CodeSamples/defer/seqlocktorture.c b/CodeSamples/defer/seqlocktorture.c index fa0b69a..a345a5f 100644 --- a/CodeSamples/defer/seqlocktorture.c +++ b/CodeSamples/defer/seqlocktorture.c @@ -78,9 +78,9 @@ void *seqlock_read_test(void *arg) run_on(me); atomic_inc(&nthreadsrunning); - while (ACCESS_ONCE(goflag) == GOFLAG_INIT) + while (READ_ONCE(goflag) == GOFLAG_INIT) poll(NULL, 0, 1); - while (ACCESS_ONCE(goflag) == GOFLAG_RUN) { + while (READ_ONCE(goflag) == GOFLAG_RUN) { for (i = COUNT_READ_RUN; i > 0; i--) { n_retries_local_cur = -1; do { @@ -115,9 +115,9 @@ void *seqlock_write_test(void *arg) run_on(me); atomic_inc(&nthreadsrunning); - while (ACCESS_ONCE(goflag) == GOFLAG_INIT) + while (READ_ONCE(goflag) == GOFLAG_INIT) poll(NULL, 0, 1); - while (ACCESS_ONCE(goflag) == GOFLAG_RUN) { + while (READ_ONCE(goflag) == GOFLAG_RUN) { for (i = COUNT_UPDATE_RUN; i > 0; i--) { write_seqlock(&test_seqlock); for (j = 0; j < n_elems; j++) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe perfbook" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html