Skip to content

Commit

Permalink
mm: Enable SLUB for RT
Browse files Browse the repository at this point in the history
Make SLUB RT aware by converting locks to raw and using free lists to
move the freeing out of the lock held region.

Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO authored and Sebastian Andrzej Siewior committed Jul 27, 2018
1 parent 4202529 commit dec29e5
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 30 deletions.
4 changes: 4 additions & 0 deletions mm/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,11 @@ static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags,
* The slab lists for all objects.
*/
struct kmem_cache_node {
#ifdef CONFIG_SLUB
raw_spinlock_t list_lock;
#else
spinlock_t list_lock;
#endif

#ifdef CONFIG_SLAB
struct list_head slabs_partial; /* partial list first, better asm code */
Expand Down
Loading

0 comments on commit dec29e5

Please sign in to comment.