acpi_addtask() calls malloc() w/ M_NOWAIT (because some calls come from
authorderaadt <deraadt@openbsd.org>
Wed, 2 Feb 2022 04:05:16 +0000 (04:05 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 2 Feb 2022 04:05:16 +0000 (04:05 +0000)
commitf48369e00dd0c5bcc6b1c49c8787d8007deeb4e2
treedf6e779a9da64d8367712acf3cf7eb3514be5352
parent5119a88b6246443239f452c54dc781b01e52f020
acpi_addtask() calls malloc() w/ M_NOWAIT (because some calls come from
interrupt context), this however means occasional resource shortage will
result in callbacks registration failing, and unknown consequences for
the task-submitting caller.
Changing this to use pools with a low water mark, decreases the odds
of that problem occuring.
ok kettenis
sys/dev/acpi/acpi.c