1. 03 6月, 2007 3 次提交
    • M
      [SCSI] iscsi_tcp: fix handling of data buffer padding · dbdb016d
      Mike Christie 提交于
      If we got the padding, data and header in different skbs,
      we were not handling the padding correctly because we attributed it
      to the data's skb. This resulted in the initiator reading from
      pad bytes + skb offset instead of the correct offset.
      
      If you could not connect with the open solaris target, this
      will fix the lock up problem you were hitting.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      dbdb016d
    • M
      [SCSI] libiscsi: make can_queue configurable · 1548271e
      Mike Christie 提交于
      This patch allows us to set can_queue and cmds_per_lun from userspace
      when we create the session/host. From there we can set it on a per
      target basis. The patch fully converts iscsi_tcp, but only hooks
      up ib_iser for cmd_per_lun since it currently has a lots of preallocations
      based on can_queue.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Cc: Roland Dreier <rdreier@cisco.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      1548271e
    • M
      [SCSI] libiscsi: fix iscsi cmdsn allocation · 77a23c21
      Mike Christie 提交于
      The cmdsn allocation and pdu transmit code can race, and we can end
      up sending a pdu with cmdsn 10 before a pdu with 5. The target will
      then fail the connection/session. This patch fixes the problem by
      delaying the cmdsn allocation until we are about to send the pdu.
      
      This also removes the xmitmutex. We were using the connection xmitmutex
      during error handling to handle races with mtask and ctask cleanup and
      completion. For ctasks we now have nice refcounting and for the mtask,
      if we hit the case where the mtask timesout and it is floating
      around somewhere in the driver, we end up dropping the session.
      And to handle session level cleanup, we use the xmit suspend bit
      along with scsi_flush_queue and the session lock to make sure
      that the xmit thread is not possibly transmitting a task while
      we are trying to kill it.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Cc: Roland Dreier <rdreier@cisco.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      77a23c21
  2. 02 6月, 2007 6 次提交
  3. 12 3月, 2007 3 次提交
  4. 10 2月, 2007 1 次提交
  5. 06 1月, 2007 3 次提交
  6. 10 11月, 2006 2 次提交
  7. 21 9月, 2006 1 次提交
  8. 03 9月, 2006 7 次提交
  9. 29 7月, 2006 7 次提交
  10. 29 6月, 2006 1 次提交
  11. 06 6月, 2006 3 次提交
  12. 20 5月, 2006 3 次提交