Page MenuHomeFreeBSD

libnv: Allow use in non-sleepable contexts
ClosedPublic

Authored by kp on Apr 2 2021, 6:54 PM.
Tags
None
Referenced Files
F168516552: D29556.diff
Fri, Aug 28, 7:15 PM
Unknown Object (File)
Wed, Aug 26, 7:30 PM
Unknown Object (File)
Tue, Aug 25, 2:53 AM
Unknown Object (File)
Mon, Aug 24, 7:35 PM
Unknown Object (File)
Sun, Aug 23, 10:12 AM
Unknown Object (File)
Fri, Aug 21, 9:36 AM
Unknown Object (File)
Thu, Aug 20, 2:47 PM
Unknown Object (File)
Thu, Aug 20, 6:39 AM
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