Commit 0873c152 authored by Jan Kasprzak's avatar Jan Kasprzak Committed by Linus Torvalds

[PATCH] Minor fix of RCU documentation

The attached patch fixes an incorrect example in Documentation/RCU/listRCU.txt
- the "original" lock-based code should not call RCU functions, of course.
Signed-Off-By: default avatarJan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 480fe6b1
......@@ -82,7 +82,7 @@ lock might be used as follows for deletion and insertion:
list_for_each_entry(e, list, list) {
if (!audit_compare_rule(rule, &e->rule)) {
list_del(&e->list);
call_rcu(&e->rcu, audit_free_rule, e);
write_unlock(&auditsc_lock);
return 0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment