Page MenuHomeFreeBSD

LinuxKPI: allocate current before taking shrinkers lock
ClosedPublic

Authored by wulf on Sep 23 2021, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 26, 8:09 AM
Unknown Object (File)
Sat, Oct 18, 2:05 PM
Unknown Object (File)
Fri, Oct 17, 9:59 PM
Unknown Object (File)
Tue, Oct 14, 1:26 AM
Unknown Object (File)
Oct 12 2025, 5:48 AM
Unknown Object (File)
Oct 12 2025, 2:23 AM
Unknown Object (File)
Oct 12 2025, 12:53 AM
Unknown Object (File)
Oct 11 2025, 9:06 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