Re: [PATCH v2 14/20] scsi: Retry pr_ops commands if a UA is returned.

Bart Van Assche
2022-08-09T19:33:09Z

On 8/9/22 09:24, Mike Christie wrote:
> On 8/9/22 2:16 AM, Christoph Hellwig wrote:
>> On Mon, Aug 08, 2022 at 07:04:13PM -0500, Mike Christie wrote:
>>> It's common to get a UA when doing PR commands. It could be due to a
>>> target restarting, transport level relogin or other PR commands like a
>>> release causing it. The upper layers don't get the sense and in some cases
>>> have no idea if it's a SCSI device, so this has the sd layer retry.
>>
>> This seems like another case for the generic in-kernel passthrugh
>> command retry discussed in the other thread.
>
> It is.

Has it been considered to introduce a flag that makes scsi_noretry_cmd()
retry passthrough commands?

Thanks,

Bart.