1. 12 9月, 2009 1 次提交
  2. 21 6月, 2009 1 次提交
  3. 24 5月, 2009 3 次提交
    • M
      [SCSI] libiscsi: add task aborted state · b3cd5050
      Mike Christie 提交于
      If a task did not complete normally due to a TMF, libiscsi will
      now complete the task with the state ISCSI_TASK_ABRT_TMF. Drivers
      like bnx2i that need to free resources if a command did not complete normally
      can then check the task state. If a driver does not need to send
      a special command if we have dropped the session then they can check
      for ISCSI_TASK_ABRT_SESS_RECOV.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      b3cd5050
    • M
      [SCSI] libiscsi: handle cleanup task races · 3bbaaad9
      Mike Christie 提交于
      bnx2i needs to send a hardware specific cleanup command if
      a command has not completed normally (iscsi/scsi response from
      target), and the session is still ok (this is the case when we
      send a TMF to stop the command).
      
      At this time it will need to drop the session lock. The problem
      with the current code is that fail_all_commands assumes we
      will hold the lock the entire time, so it uses list_for_each_entry_safe.
      If while bnx2i drops the session lock multiple cmds complete then
      list_for_each_entry_safe will not handle this correctly.
      
      This patch removes the running lists and just has us loop over
      the cmds array (in later patches we will then replace that
      array with a block tag map at the session level). It also fixes
      up the completion path so that if the TMF code and the normal recv
      path were completing the same command then they both do not try
      to do release the refcount taken when the task is queued.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      3bbaaad9
    • M
      [SCSI] libiscsi: export iscsi_itt_to_task for bnx2i · 8f9256ce
      Mike Christie 提交于
      bnx2i needs to be able to look up mgmt task like login and nop, because
      it does some processing of them on the completion path. This exports
      iscsi_itt_to_task so it can look up the task.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      8f9256ce
  4. 27 4月, 2009 1 次提交
  5. 14 3月, 2009 5 次提交
  6. 30 12月, 2008 2 次提交
  7. 13 10月, 2008 2 次提交
  8. 12 7月, 2008 12 次提交
  9. 30 4月, 2008 1 次提交
  10. 08 2月, 2008 4 次提交
  11. 12 1月, 2008 6 次提交
  12. 16 8月, 2007 1 次提交
  13. 27 7月, 2007 1 次提交