diff options
author | Keqian Zhu <zhukeqian1@huawei.com> | 2021-01-06 15:17:10 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-12 12:38:03 +0100 |
commit | d533d6359b8015e2207bb7ca86330da2ef9c3ef8 (patch) | |
tree | 423591922c2ec81c06aacb75d3a5b369c18f7019 /docs | |
parent | b9a0de3773ff2cae858434d44ef04ee257025c76 (diff) |
Docs/RCU: Correct sample code of qatomic_rcu_set
Correct sample code to avoid confusing readers.
Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com>
Cc: qemu-trivial@nongnu.org
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210106071710.15836-1-zhukeqian1@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devel/rcu.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/devel/rcu.txt b/docs/devel/rcu.txt index cdf002edd8..2e6cc607a1 100644 --- a/docs/devel/rcu.txt +++ b/docs/devel/rcu.txt @@ -392,7 +392,7 @@ Instead, we store the size of the array with the array itself: /* Removal phase. */ old_array = global_array; - qatomic_rcu_set(&new_array->data, new_array); + qatomic_rcu_set(&global_array, new_array); synchronize_rcu(); /* Reclamation phase. */ |