1. 17 1月, 2011 1 次提交
    • T
      RDMA: Update workqueue usage · f0626710
      Tejun Heo 提交于
      * ib_wq is added, which is used as the common workqueue for infiniband
        instead of the system workqueue.  All system workqueue usages
        including flush_scheduled_work() callers are converted to use and
        flush ib_wq.
      
      * cancel_delayed_work() + flush_scheduled_work() converted to
        cancel_delayed_work_sync().
      
      * qib_wq is removed and ib_wq is used instead.
      
      This is to prepare for deprecation of flush_scheduled_work().
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      f0626710
  2. 11 1月, 2011 5 次提交
  3. 06 1月, 2011 3 次提交
  4. 17 11月, 2010 1 次提交
    • J
      SCSI host lock push-down · f281233d
      Jeff Garzik 提交于
      Move the mid-layer's ->queuecommand() invocation from being locked
      with the host lock to being unlocked to facilitate speeding up the
      critical path for drivers who don't need this lock taken anyway.
      
      The patch below presents a simple SCSI host lock push-down as an
      equivalent transformation.  No locking or other behavior should change
      with this patch.  All existing bugs and locking orders are preserved.
      
      Additionally, add one parameter to queuecommand,
      	struct Scsi_Host *
      and remove one parameter from queuecommand,
      	void (*done)(struct scsi_cmnd *)
      
      Scsi_Host* is a convenient pointer that most host drivers need anyway,
      and 'done' is redundant to struct scsi_cmnd->scsi_done.
      
      Minimal code disturbance was attempted with this change.  Most drivers
      needed only two one-line modifications for their host lock push-down.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Acked-by: NJames Bottomley <James.Bottomley@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f281233d
  5. 25 10月, 2010 4 次提交
  6. 23 10月, 2010 2 次提交
  7. 05 8月, 2010 3 次提交
  8. 02 3月, 2010 2 次提交
  9. 07 1月, 2009 1 次提交
  10. 30 10月, 2008 1 次提交
  11. 29 10月, 2008 1 次提交
  12. 14 10月, 2008 1 次提交
  13. 15 7月, 2008 2 次提交
  14. 20 4月, 2008 2 次提交
  15. 17 4月, 2008 1 次提交
    • D
      IB/srp: Enforce protocol limit on srp_sg_tablesize · 1e89a194
      David Dillow 提交于
      The current SRP initiator will allow unlimited s/g entries in the
      indirect descriptors lists, but the entry count field in the SRP_CMD
      request is 8 bits, so setting srp_sg_tablesize too large will open the
      possibility of wrapping the count and generating invalid requests.
      
      Clamp srp_sg_tablesize to the protocol limits to prevent surprises.
      
      Reported by Martin W. Schlining III <mschlining@datadirectnet.com>.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      1e89a194
  16. 05 2月, 2008 1 次提交
    • D
      IB/srp: Retry stale connections · 9fe4bcf4
      David Dillow 提交于
      When a host just goes away (crash, power loss, etc.) without tearing
      down its IB connections, it can get stale connection errors when it
      tries to reconnect to targets upon rebooting.  Retrying the connection
      a few times will prevent sysadmins from playing the "which disk(s)
      went missing?" game.
      
      This would have made things slightly quicker when tracking down some
      of the recent bugs, but it also helps quite a bit when you've got a
      large number of targets hanging off a wedged server.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      9fe4bcf4
  17. 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
  18. 26 1月, 2008 3 次提交
    • D
      IB/srp: Add identifying information to log messages · 7aa54bd7
      David Dillow 提交于
      When you have multiple targets, it gets really confusing when you try
      to track down who did a reset when there is no identifying information
      in the log message, especially when the same extension ID is mapped
      through two different local IB ports.  So, add an identifier that can
      be used to track back to which local IB port/remote target pair is the
      one having problems.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Acked-by: NPete Wyckoff <pw@osc.edu>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      7aa54bd7
    • D
      IB/srp: Enable SG list chaining · fff09a8e
      David Dillow 提交于
      By default, the SCSI mid-layer seems to send down 512KB requests
      (sg_tablesize = 256), with some requests occasionally combined. By
      allowing the mid-layer to chain requests, we can easily grow to 1024KB
      or larger -- I've tested 4096KB I/O requests with no problems.
      
      I looked through the DMA paths on the hardware drivers to ensure they
      could take advantage of the SG chaining, and it seems that every one
      except ipath uses the system's DMA routines, which have been converted
      to handle chaining.  ipath looks like it should be OK, but I have no
      way to test it.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      
      [ Tested on ipath.  - Roland ]
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      fff09a8e
    • D
      IB/srp: Respect target credit limit · 8cba2077
      David Dillow 提交于
      The current SRP initiator will send requests even if it has no credits
      available.  The results of sending extra requests are vendor specific,
      but on some devices, overrunning credits will cost 85% of peak
      performance -- e.g. 100 MB/s vs 720 MB/s.  Other devices may just drop
      the requests.
      
      This patch will tell the SCSI midlayer to queue requests if there are
      fewer than two credits remaining, and will not issue a task management
      request if there are no credits remaining.  The mid-layer will retry
      the queued command once an outstanding command completes.
      
      The patch also removes the unlikely() in __srp_get_tx_iu(), as it is
      not at all unlikely to hit this limit under heavy load.
      Signed-off-by: NDavid Dillow <dillowda@ornl.gov>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      8cba2077
  19. 09 1月, 2008 1 次提交
  20. 04 1月, 2008 1 次提交
  21. 13 10月, 2007 2 次提交
  22. 10 10月, 2007 1 次提交