From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381445; b=OZ9TSMJNZtg/1KHXaVqXZWy/x9zXq7T0CdK7LE5KCnOf8GTUnWWiC1eXWwRocrQXtHpu eyJ/+WNA0iADGg6880zONj3YmAhk/RQ+rBjuh4zHzTNOlzbovvdhA5WB8G6NJV7AptV93 p4gvy/e+cHQRJDRMkomCYBFvvP+BcNWyi21DkiGxWHMxRuZtG+UAzGRgKoiVEjtid0aLF qlAiagu3baGQLjwXX/ZTS9fV2Uj/CivPv//i90nw015ZGqnEFA1HkziOtQXTD5f4YYlVl 7K/dLifA4J/P1HQ0WNXs0RUHqO5OUTLwvoq4ArZMwTHoRZ/JVimrj1wqbOD4xByCUDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381445; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=5R9rWuM8l3CE+CiQydL+ajJbozOvpaGTxItEeaGY9XA=; b=5gApUbFAV9px2haZOuOnSQWXGv5l5EAC7dBJnCS1h1GrbL/NMdvnoTrxv+7FXA2dC1Aq TYLkmlcJAwZf3bEuH1nCW9THHnHS7NIN1nT07Gil52qm7Po3vKPUTHMcDSk7KFEhZEAvd ukRV4X985z8GKck7bOUgEHfPr+vAZG4GTUJ7jU2iZLUiamsYMV5l0SDmMqvIM8cN+BeLH c6S4RZLllu/CdfrOUbwMjrTVU4RxI0u+2+CAjHupIOPeCKlor9GjXbob8Ls8bVRhnJaTY y04oDl1tamPINSnruVVkhC07FWIOoZOlEQvQAh6lplnI9ZPfF36pCd1Su2OLBoHH8aA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=stOeswb3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4834606A32D; Fri, 4 Dec 2026 10:50:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=stOeswb3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04CAA1F000CE; Fri, 4 Dec 2026 10:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381445; bh=5R9rWuM8l3CE+CiQydL+ajJbozOvpaGTxItEeaGY9XA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=stOeswb3+InQvgVN1evcK1N9worQkXVMP+0gI+UhSTuqMjXXjiruaRzOS/Vv/hZhW lWOCGPJonlvCcyo/0/yCyzftzmklo6MhMFzJPFee8VagiojS4v15DIShG5FFN/wfgb WG/arssvmYMHKEqZeNmnAUhqHgYllCluDREo+wQE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stanley Jhu , Bart Van Assche , Peter Wang , "Martin K. Petersen (Oracle)" Subject: [PATCH 7.3 657/742] scsi: ufs: core: Restore jiffies conversion of device management timeouts Date: Fri, 4 Dec 2026 19:08:41 +0900 Message-ID: <20261204100652.531123761@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stanley Jhu commit ebf5cab0dd223a36a09742a91be4fea97e46c816 upstream. Before commit 08b12cda6c44 ("scsi: ufs: core: Switch to scsi_get_internal_cmd()"), ufshcd_wait_for_dev_cmd() converted the millisecond timeout with msecs_to_jiffies() before waiting for the command. That commit moved the timeout to the block layer and assigns the millisecond value to rq->timeout as is, but rq->timeout is in jiffies. A 1500 ms query timeout (QUERY_REQ_TIMEOUT_DEFAULT) becomes 6 s with CONFIG_HZ=250 and 15 s with CONFIG_HZ=100, and NOP_OUT_TIMEOUT and ADVANCED_RPMB_REQ_TIMEOUT grow the same way. Restore the conversion with msecs_to_jiffies(). Fixes: 08b12cda6c44 ("scsi: ufs: core: Switch to scsi_get_internal_cmd()") Cc: stable@vger.kernel.org # v6.19+ Signed-off-by: Stanley Jhu Reviewed-by: Bart Van Assche Reviewed-by: Peter Wang Link: https://patch.msgid.link/20261029040003.2100003-2-stanleyjhu@google.com Signed-off-by: Martin K. Petersen (Oracle) Signed-off-by: Greg Kroah-Hartman --- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -3363,7 +3363,7 @@ static int ufshcd_issue_dev_cmd(struct u struct request *rq = scsi_cmd_to_rq(cmd); blk_status_t sts; - rq->timeout = timeout; + rq->timeout = msecs_to_jiffies(timeout); sts = blk_execute_rq(rq, true); if (sts != BLK_STS_OK) return blk_status_to_errno(sts);