Re: [PATCH 3/3] scsi: sd: Rework asynchronous resume support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux