diff options
| author | Stanley Jhu <stanleyjhu@google.com> | 2026-10-29 15:08:36 +0800 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-11-04 22:22:27 -0500 |
| commit | ebf5cab0dd223a36a09742a91be4fea97e46c816 (patch) | |
| tree | 1166310225ad40e3ab5f57ea49b194362bdf6394 /tools/perf/scripts/python | |
| parent | cae8db99f3956e6446827ae4a9605a1ed815772b (diff) | |
scsi: ufs: core: Restore jiffies conversion of device management timeouts
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 <stanleyjhu@google.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Link: https://patch.msgid.link/20261029040003.2100003-2-stanleyjhu@google.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
