Docs/RCU: Correct sample code of qatomic_rcu_set
PATCH 1/1 Docs/RCU: Correct sample code of qatomic_rcu_set
Correct sample code to avoid confusing readers.
Signed-off-by Keqian Zhu <[email protected]>
--- docs/devel/rcu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
docs/devel/rcu.txt +1 -1
@@ -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. */
Signature · 1 line
2.23.0
Quoted 13 lines · Keqian Zhu
Correct sample code to avoid confusing readers.
Signed-off-by Keqian Zhu <[email protected]>--- docs/devel/rcu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)docs/devel/rcu.txt +0
-0
docs/devel/rcu.txt Instead, we store the size of the array with the array itself: · line 398
Quoted 8 lines
docs/devel/rcu.txt +1
-1@@ -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. */
Reviewed-by Paolo Bonzini <[email protected]>
Quoted 3 lines · Keqian Zhu
Correct sample code to avoid confusing readers.
Signed-off-by Keqian Zhu <[email protected]>
Reviewed-by Peter Xu <[email protected]>
Signature · 1 line
Peter Xu