Page MenuHomeFreeBSD

LinuxKPI: allocate current before taking shrinkers lock
ClosedPublic

Authored by wulf on Sep 23 2021, 12:39 AM.
Tags
None
Referenced Files
F167659423: D32066.id95529.diff
Sun, Aug 23, 2:51 PM
Unknown Object (File)
Sat, Aug 22, 7:33 PM
Unknown Object (File)
Thu, Aug 20, 1:54 AM
Unknown Object (File)
Wed, Aug 12, 6:13 PM
Unknown Object (File)
Mon, Aug 10, 4:45 PM
Unknown Object (File)
Mon, Aug 10, 12:07 PM
Unknown Object (File)
Mon, Aug 10, 4:40 AM
Unknown Object (File)
Fri, Aug 7, 7:42 AM

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