Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs/RCU: Add the missing rcu_read_unlock()

We should exit the RCU read-side critical section before re-entering.

Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

authored by

Alan Huang and committed by
Paul E. McKenney
bc25e7c3 401013e2

+3 -1
+3 -1
Documentation/RCU/rculist_nulls.rst
··· 29 29 rcu_read_lock() 30 30 obj = lockless_lookup(key); 31 31 if (obj) { 32 - if (!try_get_ref(obj)) // might fail for free objects 32 + if (!try_get_ref(obj)) { // might fail for free objects 33 + rcu_read_unlock(); 33 34 goto begin; 35 + } 34 36 /* 35 37 * Because a writer could delete object, and a writer could 36 38 * reuse these object before the RCU grace period, we