From nobody Fri Nov 13 18:49:50 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jR5sV5Hfyz714pW for ; Fri, 13 Nov 2026 18:49:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jR5sV4b3sz4TMq for ; Fri, 13 Nov 2026 18:49:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794595790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zBS5d7XNOMObTKw2lxrA0GQJVkp5aychOsI7vr164aM=; b=OC1tQiFWeRw1xErOSvcHN+mbuKIWd87E0q/IWuucCDsRSUhcfgKTYdWgjAuG02xVSysyTr sKvxxaCFW0Hpjvhe7iLIXdVrIB6km2bTSJTuxFl4gxRE9mjSGksEw9KFD8hmMPL8kp7PWC IetUDnf79tIp3kMZQ2/iOoBthB0qHjbJrrFCfQNroRSZ5ookIU4KjgDIE0LZ857Gjoibs7 kn4DFzLz90v9XHvd9yDU0dEIoU9teVQKFAATLvxcvfMoA4HymNj9p/JXi4HlxL56sn3r6c N3/JA4ReRxNEP17Jg31jourRtmEDX6wT9ZVKTKhxvFE8LC+aafqK+A6XO6pyfg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794595790; b=exTrVAwjzovtvPFC/OPpsjN6xRNypJi/TIe+ywKJ9jNY5HFYNByPqN99rEesZtP+56xPVZ BfQTBEnVm4V9T1bugc0cmFu0Mb822OSIiCeOo5rVeBsiPPsRVSDc1/J4Zo8weXdXhU34mr OPRoMXfGJqrHhtA1f/ChhY3Xd/RPLBMLjT9epoHnYQ9mE9K5Ne3ZJFzK9vR1jMr4CGShLQ Pt+KgSa64hvmC1fRjJpIZTux8hUyjB+23qzLpjcwFN0prXLOXRHAAk8PKpT1ydaGxTZ1+4 czhg/8E3nfzKx0JUgGkOhYaqBb3uCG7apD809yNdE3auhD1DfuR9/MT+p9mqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794595790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zBS5d7XNOMObTKw2lxrA0GQJVkp5aychOsI7vr164aM=; b=WE1NKCN4vIizXikNK2KBV8HRACMp4TiYGDPsjSUKeR7Us7tCAV8UWC8wOwfL0bxSjZXnAa v+5sXWij3Hi6B/uzd4/+V2yls7Fssgcdhv/Azi4g3/oiUbQqBs5zI4g1RIBgHOLlPMq2bE 44JFyT0YrB0U1+QrQZokfnF/Zy3diGULng4uPljD+YrmuzMyEadE4XTD8KxqVgIyvn+ESe zK5rGqKrTT6zzjcUfQAURz7VVVUCZWddNIRTBe0srHjuT+M9UbIvHWQJ7ir6/huxt1vY4s 2ikdzJfOUbvnHdn79JgPDXesEF3S2a8qOZB/lilkiDBSJE0Smne4CtMRd8x/Ew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jR5sV4Dfkzncv for ; Fri, 13 Nov 2026 18:49:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20036 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 18:49:50 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: ee417f9f7f27 - main - acpi: Tasks: Use M_WAITOK to allocate the taskqueue List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee417f9f7f27b3dd3e97aeac0daba66cf9bf3c97 Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 18:49:50 +0000 Message-Id: <6af75bce.20036.4b0be1a@gitrepo.freebsd.org> The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=ee417f9f7f27b3dd3e97aeac0daba66cf9bf3c97 commit ee417f9f7f27b3dd3e97aeac0daba66cf9bf3c97 Author: Olivier Certner AuthorDate: 2026-10-03 20:33:37 +0000 Commit: Olivier Certner CommitDate: 2026-11-13 18:32:25 +0000 acpi: Tasks: Use M_WAITOK to allocate the taskqueue Memory failure at this point normally does not happen except if the kernel is running on a machine with a too tiny amount of memory, in which case it is likely to panic or to be unusable anyway. However, letting it panic here with a NULL pointer dereference is not very helpful. Instead, use M_WAITOK, hoping the memory allocator itself will indicate the low memory condition if it cannot succeed (if it does not, it should be changed to). Reviewed by: obiwac Differential revision: https://reviews.freebsd.org/D60379 --- sys/dev/acpica/Osd/OsdSchedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/Osd/OsdSchedule.c b/sys/dev/acpica/Osd/OsdSchedule.c index c39d4112a039..957fe3e69a7c 100644 --- a/sys/dev/acpica/Osd/OsdSchedule.c +++ b/sys/dev/acpica/Osd/OsdSchedule.c @@ -109,7 +109,7 @@ acpi_taskq_init(void *arg) { int i; - acpi_taskq = taskqueue_create_fast("acpi_task", M_NOWAIT, + acpi_taskq = taskqueue_create_fast("acpi_task", M_WAITOK, &taskqueue_thread_enqueue, &acpi_taskq); taskqueue_start_threads(&acpi_taskq, acpi_max_threads, PWAIT, "acpi_task"); if (acpi_task_count > 0) {