On 8/1/24 12:04 AM, Damien Le Moal wrote:
Another thing: may be check scsi_check_passthrough(). See the call to that in scsi_execute_cmd() and how it is used to drive retry of the command. Tweaking that may be what you need for your UFS device problem ?
My understanding is that making scsi_check_passthrough() retry commands would require modifying all scsi_execute_cmd() callers. If the scsi_exec_args. failures pointer is NULL, the scsi_check_passthrough() function does not trigger a retry. If scsi_noretry_cmd() is modified, none of the scsi_execute_cmd() callers have to be modified. Thanks, Bart.