1. 05 2月, 2007 1 次提交
    • I
      IB/srp: Don't wait for response when QP is in error state. · 1033ff67
      Ishai Rabinovitz 提交于
      When there is a call to send_tsk_mgmt SRP posts a send and waits for 5
      seconds to get a response.
      
      When the QP is in the error state it is obvious that there will be no
      response so it is quite useless to wait.  In fact, the timeout causes
      SRP to wait a long time to reconnect when a QP error occurs. (Each
      abort and each reset_device calls send_tsk_mgmt, which waits for the
      timeout).  The following patch solves this problem by identifying the
      failure and returning an immediate error code.
      Signed-off-by: NIshai Rabinovitz <ishai@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      1033ff67
  2. 23 1月, 2007 1 次提交
  3. 16 12月, 2006 1 次提交
    • R
      IB/srp: Fix FMR mapping for 32-bit kernels and addresses above 4G · bf628dc2
      Roland Dreier 提交于
      struct srp_device.fmr_page_mask was unsigned long, which means that
      the top part of addresses above 4G was being chopped off on 32-bit
      architectures.  Of course nothing good happens when data from SRP
      targets is DMAed to the wrong place.
      
      Fix this by changing fmr_page_mask to u64, to match the addresses
      actually used by IB devices.
      
      Thanks to Brian Cain <Brian.Cain@ge.com> and David McMillen
      <davem@systemfabricworks.com> for help diagnosing the bug and testing
      the fix.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      bf628dc2
  4. 13 12月, 2006 1 次提交
  5. 30 11月, 2006 2 次提交
  6. 22 11月, 2006 1 次提交
  7. 11 10月, 2006 2 次提交
  8. 23 9月, 2006 4 次提交
  9. 15 9月, 2006 1 次提交
  10. 04 8月, 2006 2 次提交
  11. 15 7月, 2006 2 次提交
  12. 18 6月, 2006 11 次提交
  13. 18 5月, 2006 3 次提交
  14. 10 5月, 2006 1 次提交
  15. 20 4月, 2006 1 次提交
  16. 04 4月, 2006 1 次提交
  17. 30 3月, 2006 1 次提交
    • R
      IB/srp: Fix unmapping of fake scatterlist · 3f89f834
      Roland Dreier 提交于
      The recently merged patch to create a fake scatterlist for non-SG SCSI
      commands had a bug: the driver ended up doing dma_unmap_sg() on a
      scatterlist scmnd->request_buffer rather than the fake scatter list it
      created.  Fix this so that the driver unmaps the same thing it maps.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      3f89f834
  18. 25 3月, 2006 1 次提交
    • R
      IB/srp: Use a fake scatterlist for non-SG SCSI commands · cf368713
      Roland Dreier 提交于
      Since the SCSI midlayer is moving towards entirely getting rid of
      commands with use_sg == 0, we should treat this case as an exception.
      Therefore, change the IB SRP initiator to create a fake scatterlist
      for these commands with sg_init_one().  This simplifies the flow of
      DMA mapping and unmapping, since SRP can just use dma_map_sg() and
      dma_unmap_sg() unconditionally, rather than having to choose between
      the dma_{map,unmap}_sg() and dma_{map,unmap}_single() variants.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      cf368713
  19. 21 3月, 2006 2 次提交
  20. 04 3月, 2006 1 次提交