[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] Docs/RCU: Correct sample code of qatomic_rcu_set

From: Paolo Bonzini
Subject: Re: [PATCH v2] Docs/RCU: Correct sample code of qatomic_rcu_set
Date: Thu, 7 Jan 2021 19:14:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 06/01/21 08:17, Keqian Zhu wrote:
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>

  - Add Cc and R-b.

  docs/devel/rcu.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

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 
/* Removal phase. */
              old_array = global_array;
-            qatomic_rcu_set(&new_array->data, new_array);
+            qatomic_rcu_set(&global_array, new_array);
/* Reclamation phase. */

Queued, thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]