Page MenuHomeFreeBSD

libnv: Allow use in non-sleepable contexts
ClosedPublic

Authored by kp on Apr 2 2021, 6:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 18, 2:45 AM
Unknown Object (File)
Tue, May 12, 11:40 AM
Unknown Object (File)
Tue, May 12, 4:52 AM
Unknown Object (File)
May 7 2026, 3:16 AM
Unknown Object (File)
Apr 27 2026, 6:03 PM
Unknown Object (File)
Apr 26 2026, 3:03 AM
Unknown Object (File)
Apr 24 2026, 3:14 PM
Unknown Object (File)
Apr 23 2026, 4:18 PM
Subscribers

Details

Summary

44c125c4cebc2fd87c6260b90eddae11201f5232 switched the nvlist allocations
to be M_WAITOK, but this precludes the use in non-sleepable contexts.
(E.g. with a nonsleepable lock held).

All callers for these allocation functions already cope with memory
alloation failures, so there's no reason to allow sleeping during
allocations.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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