1. 12 7月, 2008 1 次提交
  2. 16 6月, 2008 1 次提交
    • M
      [SCSI] scsi_host regression: fix scsi host leak · 3ed78972
      Mike Christie 提交于
      commit 9c770108
      Author: Dave Young <hidave.darkstar@gmail.com>
      Date:   Tue Jan 22 14:01:34 2008 +0800
      
          scsi: use class iteration api
      
      Isn't a correct replacement for the original hand rolled host
      lookup. The problem is that class_find_child would get a reference to
      the host's class device which is never released.  Since the host class
      device holds a reference to the host gendev, the host can never be
      freed.
      
      In 2.6.26 we started using class_find_device, and this function also
      gets a reference to the device, so we end up with an extra ref
      and the host will not get released.
      
      This patch adds a put_device to balance the class_find_device() get. I
      kept the scsi_host_get in scsi_host_lookup, because the target layer
      is using scsi_host_lookup and it looks like it needs the SHOST_DEL
      check.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      3ed78972
  3. 28 4月, 2008 1 次提交
    • J
      [SCSI] fix SLUB WARN_ON · 542bd137
      James Bottomley 提交于
      We're getting a WARN_ON from SLUB indicating that we're trying to free
      caches with in-use objects.  The root cause is a new dependency in the
      command/sense free on unchecked_isa_dma.  The WARN_ON is caused by
      drivers which change this in their setup after the command/sense cache
      is allocated.
      
      The fix is to move the allocation of this cache into scsi_add_host()
      so things like gdth have an opportunity to modify it between alloc and
      add (but *not* after).
      
      The true fix would be to move unchecked_isa_dma into the template and
      out of the host, so it because a truly read only variable.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      542bd137
  4. 23 4月, 2008 2 次提交
  5. 20 4月, 2008 1 次提交
  6. 08 4月, 2008 1 次提交
  7. 28 3月, 2008 1 次提交
  8. 31 1月, 2008 1 次提交
    • J
      [SCSI] remove use_sg_chaining · d3f46f39
      James Bottomley 提交于
      With the sg table code, every SCSI driver is now either chain capable
      or broken (or has sg_tablesize set so chaining is never activated), so
      there's no need to have a check in the host template.
      
      Also tidy up the code by moving the scatterlist size defines into the
      SCSI includes and permit the last entry of the scatterlist pools not
      to be a power of two.
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      d3f46f39
  9. 25 1月, 2008 1 次提交
  10. 24 1月, 2008 2 次提交
  11. 12 1月, 2008 1 次提交
  12. 18 10月, 2007 1 次提交
  13. 16 10月, 2007 1 次提交
  14. 13 10月, 2007 1 次提交
    • F
      [SCSI] add supported_mode and active_mode attributes to the host · 5dc2b89e
      FUJITA Tomonori 提交于
      This adds supported_mode and active_mode attributes to
      /sys/class/sys_host/hostX/ for specifying the mode that a lld supports
      and the currently activated mode. The output format is similar to fc
      rport roles:
      
      luce:/sys/class/scsi_host/host0$ cat supported_mode
      Initiator
      luce:/sys/class/scsi_host/host0$ cat active_mode
      Initiator
      
      The mode values uses bitmap since we would support dual-mode llds in
      the future like this:
      
      luce:/sys/class/scsi_host/host0$ cat supported_mode
      Initiator, Target
      
      The supported_mode attribute looks at a scsi_host_template and the
      active_mode attribute looks at a scsi_host. We would add a hook to a
      scsi_host_template to change the active_mode attribute
      dynamically. But now there is no hook since no lld supports that
      feature.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      5dc2b89e
  15. 01 8月, 2007 1 次提交
  16. 28 4月, 2007 1 次提交
  17. 26 11月, 2006 1 次提交
    • F
      [SCSI] export scsi-ml functions needed by tgt_scsi_lib and its LLDs · b58d9154
      FUJITA Tomonori 提交于
      This patch contains the needed changes to the scsi-ml for the target
      mode support.
      
      Note, per the last review we moved almost all the fields we added
      to the scsi_cmnd to our internal data structure which we are going
      to try and kill off when we can replace it with support from other
      parts of the kernel.
      
      The one field we left on was the offset variable. This is needed to handle
      the case where the target gets request that is so large that it cannot
      execute it in one dma operation. So max_secotors or a segment limit may
      limit the size of the transfer. In this case our tgt core code will
      break up the command into managable transfers and send them to the
      LLD one at a time. The offset is then used to tell the LLD where in
      the command we are at. Is there another field on the scsi_cmd for
      that?
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      b58d9154
  18. 16 11月, 2006 1 次提交
  19. 31 8月, 2006 1 次提交
  20. 07 8月, 2006 1 次提交
  21. 11 4月, 2006 1 次提交
  22. 28 2月, 2006 1 次提交
  23. 13 1月, 2006 1 次提交
  24. 06 1月, 2006 1 次提交
  25. 30 10月, 2005 1 次提交
  26. 29 10月, 2005 1 次提交
  27. 28 10月, 2005 1 次提交
  28. 03 10月, 2005 1 次提交
  29. 19 9月, 2005 1 次提交
  30. 07 9月, 2005 1 次提交
  31. 31 7月, 2005 3 次提交
  32. 26 6月, 2005 1 次提交
  33. 24 6月, 2005 1 次提交
  34. 17 4月, 2005 1 次提交
    • 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