Skip to content

Commit 72a2fbd

Browse files
committed
rcu/tree: docs: document bkvcache new members at struct kfree_rcu_cpu
Changeset 53c72b5 ("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: 53c72b5 ("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>
1 parent 8a50c05 commit 72a2fbd

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

kernel/rcu/tree.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,6 +3022,12 @@ struct kfree_rcu_cpu_work {
30223022
* @monitor_todo: Tracks whether a @monitor_work delayed work is pending
30233023
* @initialized: The @rcu_work fields have been initialized
30243024
* @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.
30253031
*
30263032
* This is a per-CPU structure. The reason that it is not included in
30273033
* the rcu_data structure is to permit this code to be extracted from
@@ -3037,14 +3043,6 @@ struct kfree_rcu_cpu {
30373043
bool monitor_todo;
30383044
bool initialized;
30393045
int count;
3040-
3041-
/*
3042-
* A simple cache list that contains objects for
3043-
* reuse purpose. In order to save some per-cpu
3044-
* space the list is singular. Even though it is
3045-
* lockless an access has to be protected by the
3046-
* per-cpu lock.
3047-
*/
30483046
struct llist_head bkvcache;
30493047
int nr_bkv_objs;
30503048
};

0 commit comments

Comments
 (0)