Re: [PATCH 1/2] scsi: ufs: core: Release command resources instead of force-completing

From: Bart Van Assche

Date: Tue Sep 22 2026 - 12:41:18 EST


On 9/21/26 8:03 PM, Peter Wang wrote:
It appears unreasonable to wait for the entire 30 second timeout,
as many UIC errors recover promptly. The resulting 30 second stall
would manifest as a noticeable UI freeze. Maybe we shouldn’t let
eh_host_reset_handler call the EH handler at all?
The default SCSI disk timeout is 30 seconds. That default timeout was
chosen when hard disks were the most widely used persistent storage
medium and before NAND storage became widespread. Isn't that default
timeout too big for UFS devices?

As mentioned in another email, .eh_host_reset_handler() must abort
all pending commands and must terminate all ongoing task management
functions. This implies resetting both the UFS device and the UFS
host controller. I'm not sure how to do that without calling
ufshcd_host_reset_and_restore()?

Thanks,

Bart.