Skip to content

Commit ec84b27

Browse files
anna-marialxKAGA-KOKO
authored andcommitted
rcu: Update documentation of rcu_read_unlock()
Since commit b4abf91 ("rtmutex: Make wait_lock irq safe") the explanation in rcu_read_unlock() documentation about irq unsafe rtmutex wait_lock is no longer valid. Remove it to prevent kernel developers reading the documentation to rely on it. Suggested-by: Eric W. Biederman <[email protected]> Signed-off-by: Anna-Maria Gleixner <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent cd77849 commit ec84b27

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/linux/rcupdate.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,7 @@ static inline void rcu_read_lock(void)
652652
* Unfortunately, this function acquires the scheduler's runqueue and
653653
* priority-inheritance spinlocks. This means that deadlock could result
654654
* if the caller of rcu_read_unlock() already holds one of these locks or
655-
* any lock that is ever acquired while holding them; or any lock which
656-
* can be taken from interrupt context because rcu_boost()->rt_mutex_lock()
657-
* does not disable irqs while taking ->wait_lock.
655+
* any lock that is ever acquired while holding them.
658656
*
659657
* That said, RCU readers are never priority boosted unless they were
660658
* preempted. Therefore, one way to avoid deadlock is to make sure

0 commit comments

Comments
 (0)