diff options
| author | David Rientjes <[email protected]> | 2022-12-28 06:05:48 +0000 |
|---|---|---|
| committer | Vlastimil Babka <[email protected]> | 2023-01-02 08:31:05 +0000 |
| commit | cc2e9d2b26c86c1dd8687f6916e5f621bcacd6f7 (patch) | |
| tree | 51af4df8df89ddb5322e276d1ec57648268893ef /drivers/fpga/fpga-bridge.c | |
| parent | Linux 6.2-rc2 (diff) | |
| download | kernel-cc2e9d2b26c86c1dd8687f6916e5f621bcacd6f7.tar.gz kernel-cc2e9d2b26c86c1dd8687f6916e5f621bcacd6f7.zip | |
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 <[email protected]>
Reviewed-by: Hyeonggon Yoo <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
