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, Jan 26, 6:21 PM
Unknown Object (File)
Mon, Jan 20, 10:56 AM
Unknown Object (File)
Mon, Jan 20, 10:56 AM
Unknown Object (File)
Mon, Jan 20, 8:52 AM
Unknown Object (File)
Sat, Jan 18, 9:56 PM
Unknown Object (File)
Fri, Jan 17, 9:00 PM
Unknown Object (File)
Thu, Jan 16, 7:49 PM
Unknown Object (File)
Thu, Jan 2, 2:34 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