Skip to content

Commit ab74fdf

Browse files
committed
rcu: Handle obsolete references to TINY_PREEMPT_RCU
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
1 parent f27bc48 commit ab74fdf

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

‎include/linux/rcupdate.h‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -826,15 +826,14 @@ static inline void rcu_preempt_sleep_check(void)
826826
* read-side critical section that would block in a !PREEMPT kernel.
827827
* But if you want the full story, read on!
828828
*
829-
* In non-preemptible RCU implementations (TREE_RCU and TINY_RCU), it
830-
* is illegal to block while in an RCU read-side critical section. In
831-
* preemptible RCU implementations (TREE_PREEMPT_RCU and TINY_PREEMPT_RCU)
832-
* in CONFIG_PREEMPT kernel builds, RCU read-side critical sections may
833-
* be preempted, but explicit blocking is illegal. Finally, in preemptible
834-
* RCU implementations in real-time (with -rt patchset) kernel builds,
835-
* RCU read-side critical sections may be preempted and they may also
836-
* block, but only when acquiring spinlocks that are subject to priority
837-
* inheritance.
829+
* In non-preemptible RCU implementations (TREE_RCU and TINY_RCU),
830+
* it is illegal to block while in an RCU read-side critical section.
831+
* In preemptible RCU implementations (TREE_PREEMPT_RCU) in CONFIG_PREEMPT
832+
* kernel builds, RCU read-side critical sections may be preempted,
833+
* but explicit blocking is illegal. Finally, in preemptible RCU
834+
* implementations in real-time (with -rt patchset) kernel builds, RCU
835+
* read-side critical sections may be preempted and they may also block, but
836+
* only when acquiring spinlocks that are subject to priority inheritance.
838837
*/
839838
static inline void rcu_read_lock(void)
840839
{

‎init/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ config PREEMPT_RCU
505505
def_bool TREE_PREEMPT_RCU
506506
help
507507
This option enables preemptible-RCU code that is common between
508-
the TREE_PREEMPT_RCU and TINY_PREEMPT_RCU implementations.
508+
TREE_PREEMPT_RCU and, in the old days, TINY_PREEMPT_RCU.
509509

510510
config RCU_STALL_COMMON
511511
def_bool ( TREE_RCU || TREE_PREEMPT_RCU || RCU_TRACE )

0 commit comments

Comments
 (0)