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)
Sat, Mar 29, 11:08 AM
Unknown Object (File)
Mar 6 2025, 6:51 AM
Unknown Object (File)
Mar 5 2025, 6:49 AM
Unknown Object (File)
Mar 4 2025, 11:07 AM
Unknown Object (File)
Feb 22 2025, 1:39 AM
Unknown Object (File)
Feb 4 2025, 10:59 PM
Unknown Object (File)
Jan 27 2025, 3:21 AM
Unknown Object (File)
Jan 26 2025, 4:51 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