mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 18:26:42 +00:00
slab fixes for 6.2-rc5
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEjUuTAak14xi+SF7M4CHKc/GJqRAFAmPJEEYACgkQ4CHKc/GJ qRD7HwgApZ8UyimDo5zUGOgV7wAgOsNNAYTxB6r/JacYcukVOHRlcPKvvNbWrFZI xj6R7/jSTERE8Fdep91t3v6bD/YrALBHbx71vQdATD4M3LJUexqzhVRdsVy9Sd1f QUJ+dgcsP/YGQiBJ4HYeiOZ5s4PUGDYomjnv8RLPsNX6XuOFW9JJPui39OwuItqo NBT2Ab/imwH5eTGiI3N7otRkXiKgtQWbPKlfQUQ+eG/oqp9TBRvsuUhCnxdKuM5k aeIa3daAUrB2A5j137X81bp/7TWvYGwuq8sgCh40X+Q21EoalEJMuoA8VgwpML4m bmknsEyCfv+3V2c36IPH2BKXgfaYrw== =HczB -----END PGP SIGNATURE----- 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()
This commit is contained in:
commit
46f0cba31c
@ -2211,6 +2211,8 @@ static int drain_freelist(struct kmem_cache *cache,
|
|||||||
raw_spin_unlock_irq(&n->list_lock);
|
raw_spin_unlock_irq(&n->list_lock);
|
||||||
slab_destroy(cache, slab);
|
slab_destroy(cache, slab);
|
||||||
nr_freed++;
|
nr_freed++;
|
||||||
|
|
||||||
|
cond_resched();
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
return nr_freed;
|
return nr_freed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user