1. 03 10月, 2012 1 次提交
  2. 15 4月, 2012 2 次提交
    • A
      target/iscsi: Misc cleanups from Agrover (round 2) · 8b1e1244
      Andy Grover 提交于
      This patch includes the handful of squashed patches for target/iscsi from
      Andy's original series into lio-core/master code:
      
      *) Make iscsit_add_reject static
      *) Remove unused data_offset_end from iscsi_datain_req
      *) Remove "#if 0" stubs
      *) Rename iscsi_datain_req to cmd_datain_node
      *) Cleanups for built_r2ts_for_cmd()
      *) Cleanups for Cleanup build_sendtargets_response()
      Signed-off-by: NAndy Grover <agrover@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      8b1e1244
    • A
      target/iscsi: Refactor target_tx_thread immediate+response queue loops · 6f3c0e69
      Andy Grover 提交于
      Immediate queue:
      
      Consolidate down to one switch statement by moving send_tx_data and stuff
      from second switch into the first switch, or the functions the first switch
      calls.
      
      Response queue:
      
      Do not lock istate_lock except directly around i_state modifications.
      
      Put entire ISTATE_SEND_DATAIN path within first switch statement, in prep
      for further refactoring.
      
      All other cases set use_misc = 1 and will not be using sendpage, so just
      use send_tx_data for these and set use_misc param to 1.
      
      map_sg, sent_status, use_misc, and se_cmd vars no longer needed.
      
      Then put immediate and response handling in separate functions in order
      to get iscsi_target_tx_thread down to where it fits on a page.
      Signed-off-by: NAndy Grover <agrover@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      6f3c0e69
  3. 26 7月, 2011 1 次提交
    • N
      iscsi-target: Add iSCSI fabric support for target v4.1 · e48354ce
      Nicholas Bellinger 提交于
      The Linux-iSCSI.org target module is a full featured in-kernel
      software implementation of iSCSI target mode (RFC-3720) for the
      current WIP mainline target v4.1 infrastructure code for the v3.1
      kernel.  More information can be found here:
      
      http://linux-iscsi.org/wiki/ISCSI
      
      This includes support for:
      
         * RFC-3720 defined request / response state machines and support for
           all defined iSCSI operation codes from Section 10.2.1.2 using libiscsi
           include/scsi/iscsi_proto.h PDU definitions
         * Target v4.1 compatible control plane using the generic layout in
           target_core_fabric_configfs.c and fabric dependent attributes
           within /sys/kernel/config/target/iscsi/ subdirectories.
         * Target v4.1 compatible iSCSI statistics based on RFC-4544 (iSCSI MIBS)
         * Support for IPv6 and IPv4 network portals in M:N mapping to TPGs
         * iSCSI Error Recovery Hierarchy support
         * Per iSCSI connection RX/TX thread pair scheduling affinity
         * crc32c + crc32c_intel SSEv4 instruction offload support using libcrypto
         * CHAP Authentication support using libcrypto
         * Conversion to use internal SGl allocation with iscsit_alloc_buffs() ->
           transport_generic_map_mem_to_cmd()
      
      (nab: Fix iscsi_proto.h struct scsi_lun usage from linux-next in commit:
            iscsi: Use struct scsi_lun in iscsi structs instead of u8[8])
      (nab: Fix 32-bit compile warnings)
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NAndy Grover <agrover@redhat.com>
      Acked-by: NRoland Dreier <roland@kernel.org>
      Signed-off-by: NNicholas A. Bellinger <nab@linux-iscsi.org>
      e48354ce