Message ID | 20200402011803.1270-1-fangying1@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | util/async: Add memory barrier to aio_ctx_prepare | expand |
Patchew URL: https://patchew.org/QEMU/20200402011803.1270-1-fangying1@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH] util/async: Add memory barrier to aio_ctx_prepare Message-id: 20200402011803.1270-1-fangying1@huawei.com Type: series === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20200402024431.1629-1-fangying1@huawei.com -> patchew/20200402024431.1629-1-fangying1@huawei.com Switched to a new branch 'test' 06a5d59 util/async: Add memory barrier to aio_ctx_prepare === OUTPUT BEGIN === ERROR: memory barrier without comment #60: FILE: util/async.c:254: + smp_mb(); total: 1 errors, 0 warnings, 7 lines checked Commit 06a5d59d541d (util/async: Add memory barrier to aio_ctx_prepare) has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/20200402011803.1270-1-fangying1@huawei.com/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-devel@redhat.com
diff --git a/util/async.c b/util/async.c index b94518b948..a51fffc20d 100644 --- a/util/async.c +++ b/util/async.c @@ -251,6 +251,7 @@ aio_ctx_prepare(GSource *source, gint *timeout) atomic_or(&ctx->notify_me, 1); + smp_mb(); /* We assume there is no timeout already supplied */ *timeout = qemu_timeout_ns_to_ms(aio_compute_timeout(ctx));