From nobody Tue Oct 06 07:51:17 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 4hzT3B3d9rz6cWHn for ; Tue, 06 Oct 2026 07:51:18 +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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hzT3B1mdZz4Gm8 for ; Tue, 06 Oct 2026 07:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273078; 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=7d0DTVqJc1VzLK0nnjZ/TkBH6PEqYMlTo8gmTtVgLaM=; b=vjo1IwLFCbTCMNc9A+6F8M2ftSB4gK3aQKaFdYwGO5yZSuqaNGmz6dJqW2oF+gSfOmRCeQ B7xW9vApfArCLA/dNYPPyN6VxClFHq949eN29JKsj55YDdBL+yO4V8MjwktGBUGAWu8TzG 3BPFxWtQ4NReTXzH3mzrpRbBkqu1aQaUcJLyFHC2mwMUtciQcUsSFsxSjNhqeZbdviokD4 w3ruVlw5cGvgoJIuu4Ec9GPfjHx03keBijmgJ9K0TP9HGR4M0m1b3PxBsZQlzkPVVmEzvf hQytulmTIivZLjNBOIH9taEOWft9+Ld8adACq3X5qfXwJRm36lRyBdYX6LDKhA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791273078; b=Y/RIioM5BJafeR+pvW9dwv3VWwd3k5dytVlUvUfiMOnXIyYQcPtYO2n+XCGCJVVsFryS9u MYP5qLCRDnJCFGCC9e8sOsS2jlhuCq6R0x6/SEfzseJs51LBSZrWZB/xMmMfsbxDAFuP1e hJKqWRL1drYNsxossswimPiPSpgGbT4riB8Nw59yJh4hgWVCyWkri4hYyBv4xzOXVRznDW z4TeW7C3wXHjf9/mXBY91aKqHHCqhQtcZ6x73vNHjE4jv4/uNAWRwsib8C3Mz1KJak7a0w MpAlX0aXRKObivGp3MxB9BnTNXC9Qsvaaa3h3qveV6rCuHo3EP5HCJdd2UlLfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273078; 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=7d0DTVqJc1VzLK0nnjZ/TkBH6PEqYMlTo8gmTtVgLaM=; b=MalM9teey/Jv3ZW/uLdQoHlSfttTyjdBC0YcGlBSdDTopFE22TcujRl5WHaL9yBNFZZI7W Z1p/UtfnCedPUfdda5Mcr+w4J6WhotKvHwyTqVsDyjVK16hP26DfKkmthMukJEo5HBFDK3 GrcCBpP6cnYGLlW9CVS6rID5kTHzvI0mcxHjC2OIp+OfBYBSVGoSwKCdP0+F9aLdYqVLY4 XfPw3AF0g5avrOqyim1fMhxCBVBmbKtwAtcukjcSn3MHrZ9OvUklZLUUB/CMx3Tz86v11b +JkEA1VB31E2XXaw7wXAU09S7R8IRIaSpa7WitmlGWfwIczh1DES17fEsVeg6Q== 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 4hzT396RD4zxpF for ; Tue, 06 Oct 2026 07:51:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 18525 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 06 Oct 2026 07:51:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jaeyoon Choi Subject: git: 31d28afe7ec5 - stable/15 - ufshci: release the CCB after sending a start stop unit command List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: 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: jaeyoon X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 31d28afe7ec5b92b8af1bb324be2e93ff78363b4 Auto-Submitted: auto-generated Date: Tue, 06 Oct 2026 07:51:17 +0000 Message-Id: <6ac4a875.18525.4d9b38a1@gitrepo.freebsd.org> The branch stable/15 has been updated by jaeyoon: URL: https://cgit.FreeBSD.org/src/commit/?id=31d28afe7ec5b92b8af1bb324be2e93ff78363b4 commit 31d28afe7ec5b92b8af1bb324be2e93ff78363b4 Author: Jaeyoon Choi AuthorDate: 2026-08-10 01:51:30 +0000 Commit: Jaeyoon Choi CommitDate: 2026-10-06 06:28:00 +0000 ufshci: release the CCB after sending a start stop unit command ufshci_sim_send_ssu() got a CCB from cam_periph_getccb() but never returned it. Each call leaked the CCB and one slot of the device's CCB allocation budget. When the budget runs out, the next cam_periph_getccb() waits forever and the suspend path hangs. Release the CCB while the periph lock is still held, as the other CAM periph drivers do. Sponsored by: Samsung Electronics Reviewed by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D58669 (cherry picked from commit aaf0e80e684da35cd527491243583467ae7c75cb) --- sys/dev/ufshci/ufshci_sim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ufshci/ufshci_sim.c b/sys/dev/ufshci/ufshci_sim.c index 4a106a6c7b8a..e40079b23354 100644 --- a/sys/dev/ufshci/ufshci_sim.c +++ b/sys/dev/ufshci/ufshci_sim.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -542,6 +543,8 @@ ufshci_sim_send_ssu(struct ufshci_controller *ctrlr, bool start, err = cam_periph_runccb(ccb, NULL, 0, SF_RETRY_UA, NULL); + xpt_release_ccb(ccb); + cam_periph_unlock(periph); /* Release periph reference */ cam_periph_release(periph);