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)
Wed, Jul 24, 5:33 AM
Unknown Object (File)
Sat, Jul 6, 1:53 PM
Unknown Object (File)
Jun 25 2024, 3:45 PM
Unknown Object (File)
Jun 14 2024, 6:58 PM
Unknown Object (File)
Jun 11 2024, 9:50 AM
Unknown Object (File)
Apr 29 2024, 8:51 AM
Unknown Object (File)
Apr 25 2024, 10:28 AM
Unknown Object (File)
Apr 19 2024, 3:22 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