Docs/RCU: Correct sample code of qatomic_rcu_set
PATCH v2 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]>
Reviewed-by Paolo Bonzini <[email protected]>
Reviewed-by Peter Xu <[email protected]>
---
v2:
- Add Cc and R-b.
--- 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.19.1
Quoted 6 lines · Keqian Zhu
Correct sample code to avoid confusing readers.
Signed-off-by Keqian Zhu <[email protected]>Reviewed-by Paolo Bonzini <[email protected]>Reviewed-by Peter Xu <[email protected]>
Quoted 8 lines
---
v2:
- Add Cc and R-b.--- docs/devel/rcu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Stefan Hajnoczi <[email protected]>
Paolo Bonzini
AppliedQuoted 21 lines · Keqian Zhu
Correct sample code to avoid confusing readers.
Signed-off-by Keqian Zhu <[email protected]>Reviewed-by Paolo Bonzini <[email protected]>Reviewed-by Peter Xu <[email protected]>---
v2:
- Add Cc and R-b.--- 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. */
Queued, thanks.
Paolo