Skip to content

Commit 46f0cba

Browse files
committed
Merge tag 'slab-for-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab
Pull slab fix from Vlastimil Babka: "Just a single fix, since the lkp report originally for a slub-tiny commit ended up being a gcov/compiler bug: - periodically resched in SLAB's drain_freelist(), by David Rientjes" * tag 'slab-for-6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab: mm, slab: periodically resched in drain_freelist()
2 parents 081edde + cc2e9d2 commit 46f0cba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mm/slab.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,8 @@ static int drain_freelist(struct kmem_cache *cache,
22112211
raw_spin_unlock_irq(&n->list_lock);
22122212
slab_destroy(cache, slab);
22132213
nr_freed++;
2214+
2215+
cond_resched();
22142216
}
22152217
out:
22162218
return nr_freed;

0 commit comments

Comments
 (0)