Re: [PATCH] scsi: Let scsi_execute_cmd() mark args->sshdr as invalid

From: Martin K. Petersen
Date: Sat May 20 2023 - 20:46:57 EST



Juergen,

>> Which callers? sd_spinup_disk() appears to do the right thing...
>>
>
> Not really. It is calling media_not_present() directly after the call of
> scsi_execute_cmd() without checking the result.

My bad. I was looking at sd_check_events(), not sd_spinup_disk().

--
Martin K. Petersen Oracle Linux Engineering