Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rcu/tree: docs: document bkvcache new members at struct kfree_rcu_cpu

Changeset 53c72b590b3a ("rcu/tree: cache specified number of objects")
added new members for struct kfree_rcu_cpu, but didn't add the
corresponding at the kernel-doc markup, as repoted when doing
"make htmldocs":
./kernel/rcu/tree.c:3113: warning: Function parameter or member 'bkvcache' not described in 'kfree_rcu_cpu'
./kernel/rcu/tree.c:3113: warning: Function parameter or member 'nr_bkv_objs' not described in 'kfree_rcu_cpu'

So, move the description for bkvcache to kernel-doc, and add a
description for nr_bkv_objs.

Fixes: 53c72b590b3a ("rcu/tree: cache specified number of objects")
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

+6 -8
+6 -8
kernel/rcu/tree.c
··· 3022 3022 * @monitor_todo: Tracks whether a @monitor_work delayed work is pending 3023 3023 * @initialized: The @rcu_work fields have been initialized 3024 3024 * @count: Number of objects for which GP not started 3025 + * @bkvcache: 3026 + * A simple cache list that contains objects for reuse purpose. 3027 + * In order to save some per-cpu space the list is singular. 3028 + * Even though it is lockless an access has to be protected by the 3029 + * per-cpu lock. 3030 + * @nr_bkv_objs: number of allocated objects at @bkvcache. 3025 3031 * 3026 3032 * This is a per-CPU structure. The reason that it is not included in 3027 3033 * the rcu_data structure is to permit this code to be extracted from ··· 3043 3037 bool monitor_todo; 3044 3038 bool initialized; 3045 3039 int count; 3046 - 3047 - /* 3048 - * A simple cache list that contains objects for 3049 - * reuse purpose. In order to save some per-cpu 3050 - * space the list is singular. Even though it is 3051 - * lockless an access has to be protected by the 3052 - * per-cpu lock. 3053 - */ 3054 3040 struct llist_head bkvcache; 3055 3041 int nr_bkv_objs; 3056 3042 };