David Rientjes cc2e9d2b26 mm, slab: periodically resched in drain_freelist()
drain_freelist() can be called with a very large number of slabs to free,
such as for kmem_cache_shrink(), or depending on various settings of the
slab cache when doing periodic reaping.

If there is a potentially long list of slabs to drain, periodically
schedule to ensure we aren't saturating the cpu for too long.

Signed-off-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
2023-01-02 09:31:05 +01:00
..
2022-12-14 12:20:00 -08:00
2022-12-14 12:20:00 -08:00
2022-12-21 14:31:52 -08:00
2022-12-17 14:06:53 -06:00
2022-12-15 11:12:21 -08:00
2022-09-26 19:46:16 -07:00
2022-12-17 14:06:53 -06:00
2022-11-27 23:38:02 +01:00
2022-12-17 14:06:53 -06:00
2022-12-13 19:29:45 -08:00
2022-10-03 14:03:04 -07:00
2022-12-11 18:12:08 -08:00
2022-12-13 19:29:45 -08:00
2022-10-03 14:02:43 -07:00
2022-12-13 19:29:45 -08:00
2022-09-26 19:46:09 -07:00
2022-12-17 14:06:53 -06:00
2022-09-26 19:46:26 -07:00
2022-12-13 19:29:45 -08:00
2022-12-14 12:20:00 -08:00
2022-12-13 19:29:45 -08:00
2022-12-13 19:29:45 -08:00
2022-12-17 14:06:53 -06:00
2022-12-17 14:06:53 -06:00
2022-12-11 18:12:10 -08:00
2022-12-11 18:12:10 -08:00
2022-12-11 18:12:10 -08:00