From: Paul E. McKenney Date: Mon, 23 Jun 2014 18:52:59 +0000 (-0700) Subject: documentation: Add pointer to percpu-ref for RCU and refcount X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9963185c04727769913a2758c0fcccb821c77098;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git documentation: Add pointer to percpu-ref for RCU and refcount Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett Reviewed-by: Lai Jiangshan --- diff --git a/Documentation/RCU/rcuref.txt b/Documentation/RCU/rcuref.txt index 141d531aa14b..613033ff2b9b 100644 --- a/Documentation/RCU/rcuref.txt +++ b/Documentation/RCU/rcuref.txt @@ -1,5 +1,14 @@ Reference-count design for elements of lists/arrays protected by RCU. + +Please note that the percpu-ref feature is likely your first +stop if you need to combine reference counts and RCU. Please see +include/linux/percpu-refcount.h for more information. However, in +those unusual cases where percpu-ref would consume too much memory, +please read on. + +------------------------------------------------------------------------ + Reference counting on elements of lists which are protected by traditional reader/writer spinlocks or semaphores are straightforward: