Skip to contentSkip to conversation

docs/devel: Correct typo

PATCH Applied [email protected] 4 participants 4 messages Dec 2, 2025 – Dec 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 docs/devel: Correct typo

Correct typo in atomics.rst

---
 docs/devel/atomics.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/atomics.rst +2 -2
index 95c7b77c01..ea4ede4b8c 100644
@@ -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); |
     +------------------------------------------+----------------------------------+
Signature · 1 line
2.43.0
Reviewed-by on v1 1/2
#1 lore raw
Quoted 21 lines · On 02/12/2025 14.19, [email protected] wrote:

Correct typo in atomics.rst

---
  docs/devel/atomics.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/atomics.rst +1 -1
index 95c7b77c01..ea4ede4b8c 100644
@@ -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]);  |

docs/devel/atomics.rst as well) ``smp_wmb()``: · line 289

Quoted 8 lines
docs/devel/atomics.rst +1 -1
@@ -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); |
      +------------------------------------------+----------------------------------+