Skip to content

Commit 3282b04

Browse files
sj-awspaulmckrcu
authored andcommitted
doc/RCU/listRCU: Update example function name
listRCU.rst document gives an example with 'ipc_lock()', but the function has dropped off by commit 82061c5 ("ipc: drop ipc_lock()"). Because the main logic of 'ipc_lock()' has melded in 'shm_lock()' by the commit, this commit updates the document to use 'shm_lock()' instead. Reviewed-by: Madhuparna Bhowmik <[email protected]> Signed-off-by: SeongJae Park <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent c50a871 commit 3282b04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/RCU/listRCU.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ time the external state changes before Linux becomes aware of the change,
286286
additional RCU-induced staleness is generally not a problem.
287287

288288
However, there are many examples where stale data cannot be tolerated.
289-
One example in the Linux kernel is the System V IPC (see the ipc_lock()
290-
function in ipc/util.c). This code checks a *deleted* flag under a
289+
One example in the Linux kernel is the System V IPC (see the shm_lock()
290+
function in ipc/shm.c). This code checks a *deleted* flag under a
291291
per-entry spinlock, and, if the *deleted* flag is set, pretends that the
292292
entry does not exist. For this to be helpful, the search function must
293-
return holding the per-entry lock, as ipc_lock() does in fact do.
293+
return holding the per-entry spinlock, as shm_lock() does in fact do.
294294

295295
.. _quick_quiz:
296296

0 commit comments

Comments
 (0)