Page MenuHomeFreeBSD

LinuxKPI: allocate current before taking shrinkers lock
ClosedPublic

Authored by wulf on Sep 23 2021, 12:39 AM.
Tags
None
Referenced Files
F131921535: D32066.id.diff
Sun, Oct 12, 5:48 AM
F131901825: D32066.id95974.diff
Sun, Oct 12, 2:23 AM
F131892978: D32066.id95529.diff
Sun, Oct 12, 12:53 AM
Unknown Object (File)
Sat, Oct 11, 9:06 PM
Unknown Object (File)
Sep 12 2025, 1:35 AM
Unknown Object (File)
Aug 27 2025, 8:57 PM
Unknown Object (File)
Aug 14 2025, 7:52 AM
Unknown Object (File)
Aug 2 2025, 7:02 PM

Details

Summary

This fixes following warnings when shrinkers are invoked first time:

uma_zalloc_debug: zone "lkpicurr" with the following non-sleepable
locks held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

uma_zalloc_debug: zone "lkpimm" with the following non-sleepable locks
held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

Test Plan

Run drm-kmod in low-memory conditions

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable