Skip to contentSkip to conversation

doc: Update recent SRCU API additions to whatisRCU.rst

PATCH Superseded Zqiang 3 participants 4 messages Oct 10 – Oct 19

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Zqiang

author reviewer
#0 lore raw

PATCH 1/1 doc: Update recent SRCU API additions to whatisRCU.rst

The commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' introduces some new APIs:

srcu_read_lock_atomic
srcu_read_unlock_atomic
synchronize_srcu_atomic
DEFINE_SRCU_ATOMIC
DEFINE_STATIC_SRCU_ATOMIC
init_srcu_struct_atomic

This commit therefore update thems to whatisRCU.rst.

---
 Documentation/RCU/whatisRCU.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/RCU/whatisRCU.rst +6 -1
index e6767baff2d3..75c50f2f6d79 100644
@@ -1209,11 +1209,13 @@ SRCU::
 	srcu_read_lock_nmisafe		start_poll_synchronize_srcu
 	srcu_read_unlock_nmisafe	start_poll_synchronize_srcu_expedited
 	srcu_read_lock_notrace		poll_state_synchronize_srcu
-	srcu_read_unlock_notrace
+	srcu_read_unlock_notrace	synchronize_srcu_atomic
 	srcu_down_read
 	srcu_up_read
 	srcu_down_read_fast
 	srcu_up_read_fast
+	srcu_read_lock_atomic
+	srcu_read_unlock_atomic
 	guard(srcu)()
 	scoped_guard(srcu)
 	srcu_read_lock_held
@@ -1229,8 +1231,11 @@ SRCU: Initialization/cleanup/ordering::
 	DEFINE_STATIC_SRCU
 	DEFINE_SRCU_FAST        // for srcu_read_lock_fast() and friends
 	DEFINE_STATIC_SRCU_FAST // for srcu_read_lock_fast() and friends
+	DEFINE_SRCU_ATOMIC
+	DEFINE_STATIC_SRCU_ATOMIC
 	init_srcu_struct
 	init_srcu_struct_fast
+	init_srcu_struct_atomic
 	cleanup_srcu_struct
 	smp_mb__after_srcu_read_unlock
 
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Zqiang

The commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' introduces some new APIs:

srcu_read_lock_atomic
srcu_read_unlock_atomic
synchronize_srcu_atomic
DEFINE_SRCU_ATOMIC
DEFINE_STATIC_SRCU_ATOMIC
init_srcu_struct_atomic

Quoted 3 lines

This commit therefore update thems to whatisRCU.rst.

Applying for 7.5.

thanks,

Joel Fernandes

Quoted 38 lines
---
 Documentation/RCU/whatisRCU.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/RCU/whatisRCU.rst +6 -1
index e6767baff2d3..75c50f2f6d79 100644
@@ -1209,11 +1209,13 @@ SRCU::
 	srcu_read_lock_nmisafe		start_poll_synchronize_srcu
 	srcu_read_unlock_nmisafe	start_poll_synchronize_srcu_expedited
 	srcu_read_lock_notrace		poll_state_synchronize_srcu
-	srcu_read_unlock_notrace
+	srcu_read_unlock_notrace	synchronize_srcu_atomic
 	srcu_down_read
 	srcu_up_read
 	srcu_down_read_fast
 	srcu_up_read_fast
+	srcu_read_lock_atomic
+	srcu_read_unlock_atomic
 	guard(srcu)()
 	scoped_guard(srcu)
 	srcu_read_lock_held
@@ -1229,8 +1231,11 @@ SRCU: Initialization/cleanup/ordering::
 	DEFINE_STATIC_SRCU
 	DEFINE_SRCU_FAST        // for srcu_read_lock_fast() and friends
 	DEFINE_STATIC_SRCU_FAST // for srcu_read_lock_fast() and friends
+	DEFINE_SRCU_ATOMIC
+	DEFINE_STATIC_SRCU_ATOMIC
 	init_srcu_struct
 	init_srcu_struct_fast
+	init_srcu_struct_atomic
 	cleanup_srcu_struct
 	smp_mb__after_srcu_read_unlock
 
Signature · 1 line
2.17.1
author reviewer
#2 lore raw
Quoted 14 lines · Zqiang
Quoted 12 lines

The commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")'
introduces some new APIs:

srcu_read_lock_atomic
srcu_read_unlock_atomic
synchronize_srcu_atomic
DEFINE_SRCU_ATOMIC
DEFINE_STATIC_SRCU_ATOMIC
init_srcu_struct_atomic

Quoted 5 lines
Quoted 4 lines

This commit therefore update thems to whatisRCU.rst.

Hi, Joel

I have been update v2 resend.

Thanks

Quoted 47 lines

Applying for 7.5.

thanks,

Joel Fernandes

Quoted 39 lines
---
 Documentation/RCU/whatisRCU.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Documentation/RCU/whatisRCU.rst b/Documentation/RCU/whatisRCU.rst index e6767baff2d3..75c50f2f6d79 100644
--- a/Documentation/RCU/whatisRCU.rst
+++ b/Documentation/RCU/whatisRCU.rst
@@ -1209,11 +1209,13 @@ SRCU::
srcu_read_lock_nmisafe start_poll_synchronize_srcu srcu_read_unlock_nmisafe start_poll_synchronize_srcu_expedited srcu_read_lock_notrace poll_state_synchronize_srcu
- srcu_read_unlock_notrace
+ srcu_read_unlock_notrace synchronize_srcu_atomic
srcu_down_read
srcu_up_read
srcu_down_read_fast
srcu_up_read_fast
+ srcu_read_lock_atomic
+ srcu_read_unlock_atomic
guard(srcu)()
scoped_guard(srcu)
srcu_read_lock_held
@@ -1229,8 +1231,11 @@ SRCU: Initialization/cleanup/ordering::
DEFINE_STATIC_SRCU
DEFINE_SRCU_FAST // for srcu_read_lock_fast() and friends DEFINE_STATIC_SRCU_FAST // for srcu_read_lock_fast() and friends
+ DEFINE_SRCU_ATOMIC
+ DEFINE_STATIC_SRCU_ATOMIC
init_srcu_struct
init_srcu_struct_fast
+ init_srcu_struct_atomic
cleanup_srcu_struct
smp_mb__after_srcu_read_unlock

--
2.17.1

Reviewed-by on v1 1/1
#3 lore raw
In reply to Zqiang
Quoted 52 lines · Zqiang

The commit 'dab06d6f9379 ("srcutree: Add an atomic Tree SRCU")' introduces some new APIs:

srcu_read_lock_atomic
srcu_read_unlock_atomic
synchronize_srcu_atomic
DEFINE_SRCU_ATOMIC
DEFINE_STATIC_SRCU_ATOMIC
init_srcu_struct_atomic

This commit therefore update thems to whatisRCU.rst.

---
 Documentation/RCU/whatisRCU.rst | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/RCU/whatisRCU.rst +6 -2
index e6767baff2d3..75c50f2f6d79 100644
@@ -1209,11 +1209,13 @@ SRCU::
        srcu_read_lock_nmisafe          start_poll_synchronize_srcu
        srcu_read_unlock_nmisafe        start_poll_synchronize_srcu_expedited
        srcu_read_lock_notrace          poll_state_synchronize_srcu
-       srcu_read_unlock_notrace
+       srcu_read_unlock_notrace        synchronize_srcu_atomic
        srcu_down_read
        srcu_up_read
        srcu_down_read_fast
        srcu_up_read_fast
+       srcu_read_lock_atomic
+       srcu_read_unlock_atomic
        guard(srcu)()
        scoped_guard(srcu)
        srcu_read_lock_held
@@ -1229,8 +1231,11 @@ SRCU: Initialization/cleanup/ordering::
        DEFINE_STATIC_SRCU
        DEFINE_SRCU_FAST        // for srcu_read_lock_fast() and friends
        DEFINE_STATIC_SRCU_FAST // for srcu_read_lock_fast() and friends
+       DEFINE_SRCU_ATOMIC
+       DEFINE_STATIC_SRCU_ATOMIC
        init_srcu_struct
        init_srcu_struct_fast
+       init_srcu_struct_atomic
        cleanup_srcu_struct
        smp_mb__after_srcu_read_unlock
 
--

2.17.1