Page MenuHomeFreeBSD

libnv: Allow use in non-sleepable contexts
ClosedPublic

Authored by kp on Apr 2 2021, 6:54 PM.
Tags
None
Referenced Files
F163141884: D29556.id.diff
Mon, Jul 20, 11:40 AM
Unknown Object (File)
Sun, Jul 19, 10:14 PM
Unknown Object (File)
Sat, Jul 18, 5:07 PM
Unknown Object (File)
Sun, Jul 12, 1:38 AM
Unknown Object (File)
Wed, Jul 8, 6:59 PM
Unknown Object (File)
Tue, Jul 7, 9:57 AM
Unknown Object (File)
Mon, Jul 6, 3:51 PM
Unknown Object (File)
Thu, Jun 25, 11:31 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
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 38278
Build 35167: arc lint + arc unit