summaryrefslogtreecommitdiffstats
path: root/Documentation/RCU/listRCU.txt
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2012-10-19 09:48:30 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-11-08 11:44:25 -0800
commit57d34a6cee1399bfedaa73add1915951cbe75cab (patch)
treeb1ace739f62f0e8217b4213a8cdda9fc46f9b27e /Documentation/RCU/listRCU.txt
parent0f9574d83234274c4d8f8f742b45022e5718b16e (diff)
downloadblackbird-op-linux-57d34a6cee1399bfedaa73add1915951cbe75cab.tar.gz
blackbird-op-linux-57d34a6cee1399bfedaa73add1915951cbe75cab.zip
rcu: Update docs to include kfree_rcu()
Mention kfree_rcu() in the call_rcu() section. Additionally fix the example code for list replacement that used the wrong structure element. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'Documentation/RCU/listRCU.txt')
-rw-r--r--Documentation/RCU/listRCU.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/RCU/listRCU.txt b/Documentation/RCU/listRCU.txt
index 4349c1487e91..adb5a3782846 100644
--- a/Documentation/RCU/listRCU.txt
+++ b/Documentation/RCU/listRCU.txt
@@ -205,7 +205,7 @@ RCU ("read-copy update") its name. The RCU code is as follows:
audit_copy_rule(&ne->rule, &e->rule);
ne->rule.action = newaction;
ne->rule.file_count = newfield_count;
- list_replace_rcu(e, ne);
+ list_replace_rcu(&e->list, &ne->list);
call_rcu(&e->rcu, audit_free_rule);
return 0;
}
OpenPOWER on IntegriCloud