diff options
author | Jan Kasprzak <kas@fi.muni.cz> | 2004-11-07 04:08:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-07 04:08:52 -0800 |
commit | 0873c152735440903f9034a691e0b6a6dc386dde (patch) | |
tree | bd0487cfde220425cc0cb9e84a41212b0aadca1f /Documentation | |
parent | 480fe6b1b357be5ecaeeb99357f8f49447a0810d (diff) | |
download | history-0873c152735440903f9034a691e0b6a6dc386dde.tar.gz |
[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: Jan "Yenya" Kasprzak <kas@fi.muni.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/RCU/listRCU.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/RCU/listRCU.txt b/Documentation/RCU/listRCU.txt index 46950afda25f44..bda6ead69bd0d8 100644 --- a/Documentation/RCU/listRCU.txt +++ b/Documentation/RCU/listRCU.txt @@ -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; } } |