1. 06 Dec, 2011 4 commits
    • Bart Van Assche's avatar
      target: Avoid compiler warnings about signed one-bit bitfields · 5f655e8d
      Bart Van Assche authored
      
      Convert to unsigned bit fields for active I/O shutdown fields.
      Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      5f655e8d
    • Bart Van Assche's avatar
      target: Improve system responsivity during I/O · 330694a5
      Bart Van Assche authored
      
      While testing ib_srpt I noticed that the target system became
      rather unresponsive during intensive I/O. The patch below made
      my target system responsive again during I/O without decreasing
      performance.
      Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      330694a5
    • Nicholas Bellinger's avatar
      iscsi-target: Fix sess allocation leak in iscsi_login_zero_tsih_s1 · 0957627a
      Nicholas Bellinger authored
      
      This patch adds missing kfree() for an allocation in iscsi_login_zero_tsih_s1()
      code, and make transport_init_session() check for IS_ERR() returns.
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      0957627a
    • Nicholas Bellinger's avatar
      target: Address legacy PYX_TRANSPORT_* return code breakage · 03e98c9e
      Nicholas Bellinger authored
      
      This patch removes legacy usage of PYX_TRANSPORT_* return codes in a number
      of locations and addresses cases where transport_generic_request_failure()
      was returning the incorrect sense upon CHECK_CONDITION status after the
      v3.1 converson to use errno return codes.
      
      This includes the conversion of transport_generic_request_failure() to
      process cmd->scsi_sense_reason and handle extra TCM_RESERVATION_CONFLICT
      before calling transport_send_check_condition_and_sense() to queue up
      response status.  It also drops PYX_TRANSPORT_OUT_OF_MEMORY_RESOURCES legacy
      usgae, and returns TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE w/ a response
      for these cases.
      
      transport_generic_allocate_tasks(), transport_generic_new_cmd(), backend
      SCF_SCSI_DATA_SG_IO_CDB ->do_task(), and emulated ->execute_task() have
      all been updated to set se_cmd->scsi_sense_reason and return errno codes
      universally upon failure.  This includes cmd->scsi_sense_reason assignment
      in target_core_alua.c, target_core_pr.c and target_core_cdb.c emulation code.
      
      Finally it updates fabric modules to remove the legacy usage, and for
      TFO->new_cmd_map() callers forwards return values outside of fabric code.
      iscsi-target has also been updated to remove a handful of special cases
      related to the cleanup and signaling QUEUE_FULL handling w/ ft_write_pending()
      
      (v2: Drop extra SCF_SCSI_CDB_EXCEPTION check during failure from
           transport_generic_new_cmd, and re-add missing task->task_error_status
           assignment in transport_complete_task)
      
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: stable@kernel.org
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      03e98c9e
  2. 01 Dec, 2011 10 commits
  3. 30 Nov, 2011 14 commits
  4. 29 Nov, 2011 12 commits