* [PATCH 1/2] docs/devel: Correct typo
@ 2025-12-02 13:19 AlanoSong
2025-12-02 19:52 ` Thomas Huth
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: AlanoSong @ 2025-12-02 13:19 UTC (permalink / raw)
To: qemu-devel; +Cc: alex.bennee, berrange, Alano Song
Correct typo in atomics.rst
Signed-off-by: Alano Song <AlanoSong@163.com>
---
docs/devel/atomics.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/devel/atomics.rst b/docs/devel/atomics.rst
index 95c7b77c01..ea4ede4b8c 100644
--- a/docs/devel/atomics.rst
+++ b/docs/devel/atomics.rst
@@ -266,7 +266,7 @@ Splitting a loop can also be useful to reduce the number of barriers:
| n = 0; | smp_mb_release(); |
| for (i = 0; i < 10; i++) { | for (i = 0; i < 10; i++) |
| qatomic_store_release(&a[i], false); | qatomic_set(&a[i], false); |
- | smp_mb(); | smb_mb(); |
+ | smp_mb(); | smp_mb(); |
| n += qatomic_read(&b[i]); | n = 0; |
| } | for (i = 0; i < 10; i++) |
| | n += qatomic_read(&b[i]); |
@@ -283,7 +283,7 @@ as well) ``smp_wmb()``:
| | smp_mb_release(); |
| for (i = 0; i < 10; i++) { | for (i = 0; i < 10; i++) |
| qatomic_store_release(&a[i], false); | qatomic_set(&a[i], false); |
- | qatomic_store_release(&b[i], false); | smb_wmb(); |
+ | qatomic_store_release(&b[i], false); | smp_wmb(); |
| } | for (i = 0; i < 10; i++) |
| | qatomic_set(&b[i], false); |
+------------------------------------------+----------------------------------+
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] docs/devel: Correct typo
2025-12-02 13:19 [PATCH 1/2] docs/devel: Correct typo AlanoSong
@ 2025-12-02 19:52 ` Thomas Huth
2025-12-03 12:38 ` Christian Schoenebeck
2025-12-03 13:08 ` Alex Bennée
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2025-12-02 19:52 UTC (permalink / raw)
To: AlanoSong, qemu-devel; +Cc: alex.bennee, berrange, QEMU Trivial
On 02/12/2025 14.19, AlanoSong@163.com wrote:
> Correct typo in atomics.rst
>
> Signed-off-by: Alano Song <AlanoSong@163.com>
> ---
> docs/devel/atomics.rst | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/docs/devel/atomics.rst b/docs/devel/atomics.rst
> index 95c7b77c01..ea4ede4b8c 100644
> --- a/docs/devel/atomics.rst
> +++ b/docs/devel/atomics.rst
> @@ -266,7 +266,7 @@ Splitting a loop can also be useful to reduce the number of barriers:
> | n = 0; | smp_mb_release(); |
> | for (i = 0; i < 10; i++) { | for (i = 0; i < 10; i++) |
> | qatomic_store_release(&a[i], false); | qatomic_set(&a[i], false); |
> - | smp_mb(); | smb_mb(); |
> + | smp_mb(); | smp_mb(); |
> | n += qatomic_read(&b[i]); | n = 0; |
> | } | for (i = 0; i < 10; i++) |
> | | n += qatomic_read(&b[i]); |
> @@ -283,7 +283,7 @@ as well) ``smp_wmb()``:
> | | smp_mb_release(); |
> | for (i = 0; i < 10; i++) { | for (i = 0; i < 10; i++) |
> | qatomic_store_release(&a[i], false); | qatomic_set(&a[i], false); |
> - | qatomic_store_release(&b[i], false); | smb_wmb(); |
> + | qatomic_store_release(&b[i], false); | smp_wmb(); |
> | } | for (i = 0; i < 10; i++) |
> | | qatomic_set(&b[i], false); |
> +------------------------------------------+----------------------------------+
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] docs/devel: Correct typo
2025-12-02 13:19 [PATCH 1/2] docs/devel: Correct typo AlanoSong
2025-12-02 19:52 ` Thomas Huth
@ 2025-12-03 12:38 ` Christian Schoenebeck
2025-12-03 13:08 ` Alex Bennée
2 siblings, 0 replies; 4+ messages in thread
From: Christian Schoenebeck @ 2025-12-03 12:38 UTC (permalink / raw)
To: qemu-devel; +Cc: alex.bennee, berrange, Alano Song, AlanoSong, QEMU Trivial
On Tuesday, 2 December 2025 14:19:34 CET AlanoSong@163.com wrote:
> Correct typo in atomics.rst
>
> Signed-off-by: Alano Song <AlanoSong@163.com>
> ---
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] docs/devel: Correct typo
2025-12-02 13:19 [PATCH 1/2] docs/devel: Correct typo AlanoSong
2025-12-02 19:52 ` Thomas Huth
2025-12-03 12:38 ` Christian Schoenebeck
@ 2025-12-03 13:08 ` Alex Bennée
2 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2025-12-03 13:08 UTC (permalink / raw)
To: AlanoSong; +Cc: qemu-devel, berrange
AlanoSong@163.com writes:
> Correct typo in atomics.rst
Queued to for-10.2/final-fixes, thanks.
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-03 13:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 13:19 [PATCH 1/2] docs/devel: Correct typo AlanoSong
2025-12-02 19:52 ` Thomas Huth
2025-12-03 12:38 ` Christian Schoenebeck
2025-12-03 13:08 ` Alex Bennée
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).