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)
Tue, Oct 20, 12:58 AM
Unknown Object (File)
Tue, Oct 20, 12:39 AM
Unknown Object (File)
Sun, Oct 18, 8:33 PM
Unknown Object (File)
Sun, Oct 18, 7:04 PM
Unknown Object (File)
Wed, Oct 7, 4:42 PM
Unknown Object (File)
Wed, Sep 23, 8:50 PM
Unknown Object (File)
Sep 15 2026, 5:24 AM
Unknown Object (File)
Sep 10 2026, 6:21 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