summary refs log tree commit diff stats
path: root/include/sysemu/block-backend.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2017-06-05 14:38:52 +0200
committerFam Zheng <famz@redhat.com>2017-06-16 07:55:00 +0800
commitd993b85804b7ec099d4e1d377161ac8af398d855 (patch)
tree4884e4e48d1403d720a08a8080c0a35041b82d40 /include/sysemu/block-backend.h
parent414c2ec3585408a5c7b458664db180e91480bb03 (diff)
downloadfocaccia-qemu-d993b85804b7ec099d4e1d377161ac8af398d855.tar.gz
focaccia-qemu-d993b85804b7ec099d4e1d377161ac8af398d855.zip
block: access io_limits_disabled with atomic ops
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170605123908.18777-4-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/sysemu/block-backend.h')
-rw-r--r--include/sysemu/block-backend.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 840ad6134c..24b63d6b03 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -80,7 +80,8 @@ typedef struct BlockBackendPublic {
     CoQueue      throttled_reqs[2];
 
     /* Nonzero if the I/O limits are currently being ignored; generally
-     * it is zero.  */
+     * it is zero.  Accessed with atomic operations.
+     */
     unsigned int io_limits_disabled;
 
     /* The following fields are protected by the ThrottleGroup lock.