On 6/28/22 23:02, Hannes Reinecke wrote:
On 6/29/22 00:21, Bart Van Assche wrote:
+/* Process sense data after a START command finished. */
+static void sd_start_done_work(struct work_struct *work)
+{
+ struct scsi_disk *sdkp = container_of(work, typeof(*sdkp),
+ start_done_work);
+ struct scsi_sense_hdr sshdr;
+ int res = sdkp->start_result;
+
+ if (res == 0)
+ return;
+
+ sd_print_result(sdkp, "Start/Stop Unit failed", res);
Surely START/STOP unit can succeed, no?
Yes, hence the "if (res == 0) return;" code. Did I perhaps misunderstand
your question?
Bart.