1. 12 11月, 2014 1 次提交
    • D
      scsi: add SG_SCSI_RESET_NO_ESCALATE flag to SG_SCSI_RESET ioctl · 26cf591e
      Douglas Gilbert 提交于
      Further to a January 2013 thread titled: "[PATCH] SG_SCSI_RESET ioctl
      should only perform requested operation" by Jeremy Linton a patch (v3)
      is presented that expands the existing ioctl to include "no_escalate"
      versions to the existing resets. This requires no changes to SCSI low
      level drivers (LLDs); it adds several more finely tuned reset options
      to the user space. For example:
      
         /* This call remains the same, with the same escalating semantics
          * if the device (LU) reset fail. That is: on failure to try a
          * target reset and if that fails, try a bus reset, and if that fails
          * try a host (i.e. LLD) reset. */
         val = SG_SCSI_RESET_DEVICE;
         res = ioctl(<sg_or_block_fd>, SG_SCSI_RESET, &val);
      
         /* What follows is a new option introduced by this patch series. Only
          * a device reset is attempted. If that fails then an appropriate
          * error code is provided. N.B. There is no reset escalation. */
         val = SG_SCSI_RESET_DEVICE | SG_SCSI_RESET_NO_ESCALATE;
         res = ioctl(<sg_or_block_fd>, SG_SCSI_RESET, &val);
      Signed-off-by: NDouglas Gilbert <dgilbert@interlog.com>
      Reviewed-by: NJeremy Linton <jlinton@tributary.com>
      Reviewed-by: NHannes Reinecke <hare@suse.de>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      26cf591e
  2. 18 7月, 2014 1 次提交
  3. 05 12月, 2009 1 次提交
  4. 03 1月, 2009 1 次提交
  5. 30 12月, 2008 2 次提交
  6. 21 10月, 2008 2 次提交
  7. 12 1月, 2008 2 次提交
  8. 28 7月, 2006 1 次提交
  9. 11 6月, 2006 1 次提交
  10. 13 4月, 2006 1 次提交
    • C
      [SCSI] unify SCSI_IOCTL_SEND_COMMAND implementations · 21b2f0c8
      Christoph Hellwig 提交于
      We currently have two implementations of this obsolete ioctl, one in
      the block layer and one in the scsi code.  Both of them have drawbacks.
      
      This patch kills the scsi layer version after updating the block version
      with the missing bits:
      
       - argument checking
       - use scatterlist I/O
       - set number of retries based on the submitted command
      
      This is the last user of non-S/G I/O except for the gdth driver, so
      getting this in ASAP and through the scsi tree would be nie to kill
      the non-S/G I/O path.  Jens, what do you think about adding a check
      for non-S/G I/O in the midlayer?
      
      Thanks to  Or Gerlitz for testing this patch.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      21b2f0c8
  11. 28 2月, 2006 1 次提交
  12. 29 10月, 2005 2 次提交
  13. 28 10月, 2005 1 次提交
  14. 19 9月, 2005 1 次提交
  15. 07 9月, 2005 1 次提交
  16. 29 8月, 2005 2 次提交
  17. 31 7月, 2005 1 次提交
  18. 19 4月, 2005 1 次提交
  19. 17 4月, 2005 2 次提交
    • [PATCH] consolidate timeout defintions in scsi.h · 0890d74f
      提交于
      Adapted from a patch in SuSE's kernel SRPM.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      0890d74f
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4