Re: [PATCH] UFS: Make TM command timeout configurable from host side
From: Bart Van Assche
Date: Mon Nov 17 2025 - 11:45:42 EST
On 11/16/25 11:11 PM, Seunghui Lee wrote:
/* maximum number of retries for a general UIC command */
#define UFS_UIC_COMMAND_RETRIES 3
@@ -7663,7 +7663,7 @@ int ufshcd_try_to_abort_task(struct ufs_hba *hba, int tag)
int poll_cnt;
u8 resp = 0xF;
- for (poll_cnt = 100; poll_cnt; poll_cnt--) {
+ for (poll_cnt = 30; poll_cnt; poll_cnt--) {
err = ufshcd_issue_tm_cmd(hba, lrbp->lun, lrbp->task_tag,
UFS_QUERY_TASK, &resp);
if (!err && resp == UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED) {
There are no other SCSI drivers I know of that have a retry loop around
the code that submits task management functions. I propose to reduce the
retry count in this function from 100 to 1.
Thanks,
Bart.