1. 28 2月, 2018 10 次提交
  2. 23 2月, 2018 14 次提交
  3. 22 2月, 2018 1 次提交
  4. 16 2月, 2018 13 次提交
  5. 14 2月, 2018 2 次提交
    • M
      scsi: scsi_debug: reset injection flags for every_nth > 0 · f9ba7af8
      Martin Wilck 提交于
      If every_nth > 0, the injection flags must be reset for commands that
      aren't supposed to fail (i.e. that aren't "nth"). Otherwise, commands
      will continue to fail, like in the every_nth < 0 case.
      Signed-off-by: NMartin Wilck <mwilck@suse.com>
      Acked-by: NDouglas Gilbert <dgilbert@interlog.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      f9ba7af8
    • D
      scsi: scsi_debug: implement IMMED bit · 80c49563
      Douglas Gilbert 提交于
      The Start Stop Unit (SSU) command takes in the order of a second to complete
      on some SAS SSDs and longer on hard disks. Synchronize Cache (SC) can also
      take some time. Both commands have an IMMED bit in their cdbs for those apps
      that don't want to wait. This patch introduces a long delay for those commands
      when the IMMED bit is clear.  Since SC is a media access command then when the
      fake_rw option is active, its cdb processing is skipped and it returns
      immediately. The SSU command is not altered by the setting of the fake_rw
      option. These actions are not changed by this patch.
      
      Changes since v1:
        - clear the cdb mask of SYNCHRONIZE CACHE(16) cdb in byte 1, bit 0
      
      Changes:
        - add the SYNCHRONIZE CACHE(16) command
        - together with the existing START STOP UNIT and SYNCHRONIZE CACHE(10)
          commands process the IMMED bit in their cdbs
        - if the IMMED bit is set, return immediately
        - if the IMMED bit is clear, treat the delay parameter as having
          a unit of one second
        - in the SYNCHRONIZE CACHE processing do a bounds check
      Signed-off-by: NDouglas Gilbert <dgilbert@interlog.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      80c49563