Skip to content

Commit bbe658d

Browse files
urezkitehcaster
authored andcommitted
mm/slab: Move kvfree_rcu() into SLAB
Move kvfree_rcu() functionality to the slab_common.c file. The reason to have kvfree_rcu() functionality as part of SLAB is that there is a clear trend and need of closer integration. One of the recent example is creating a barrier function for SLAB caches. Another reason is to prevent of having several implementations of RCU machinery for reclaiming objects after a GP. As future steps, it can be more integrated(easier) with SLAB internals. Signed-off-by: Uladzislau Rezki (Sony) <[email protected]> Acked-by: Hyeonggon Yoo <[email protected]> Tested-by: Hyeonggon Yoo <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
1 parent c18bcd8 commit bbe658d

File tree

4 files changed

+881
-880
lines changed

4 files changed

+881
-880
lines changed

include/linux/rcupdate.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ static inline void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func)
118118

119119
/* Internal to kernel */
120120
void rcu_init(void);
121-
void __init kvfree_rcu_init(void);
122121
extern int rcu_scheduler_active;
123122
void rcu_sched_clock_irq(int user);
124123

include/linux/slab.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,5 +1099,6 @@ unsigned int kmem_cache_size(struct kmem_cache *s);
10991099
size_t kmalloc_size_roundup(size_t size);
11001100

11011101
void __init kmem_cache_init_late(void);
1102+
void __init kvfree_rcu_init(void);
11021103

11031104
#endif /* _LINUX_SLAB_H */

0 commit comments

Comments
 (0)