1. 29 10月, 2015 1 次提交
    • S
      IB/iser: set block queue_virt_boundary · dd0107a0
      Sagi Grimberg 提交于
      The block layer can reliably guarantee that SG lists won't
      contain gaps (page unaligned) if a driver set the queue
      virt_boundary.
      
      With this setting the block layer will:
      - refuse merges if bios are not aligned to the virtual boundary
      - split bios/requests that are not aligned to the virtual boundary
      - or, bounce buffer SG_IOs that are not aligned to the virtual boundary
      
      Since iser is working in 4K page size, set the virt_boundary to
      4K pages. With this setting, we can now safely remove the bounce
      buffering logic in iser.
      Signed-off-by: NSagi Grimberg <sagig@mellanox.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      dd0107a0
  2. 31 8月, 2015 7 次提交
  3. 16 4月, 2015 5 次提交
  4. 18 2月, 2015 1 次提交
    • S
      IB/iser: Fix memory regions possible leak · 6606e6a2
      Sagi Grimberg 提交于
      When teardown process starts during live IO, we need to keep the
      memory regions pool (frmr/fmr) until all in-flight tasks are properly
      released, since each task may return a memory region to the pool. In
      order to do this, we pass a destroy flag to iser_free_ib_conn_res to
      indicate we can destroy the device and the memory regions
      pool. iser_conn_release will pass it as true and also DEVICE_REMOVAL
      event (we need to let the device to properly remove).
      
      Also, Since we conditionally call iser_free_rx_descriptors,
      remove the extra check on iser_conn->rx_descs.
      
      Fixes: 5426b171 ("IB/iser: Collapse cleanup and disconnect handlers")
      Reported-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NSagi Grimberg <sagig@mellanox.com>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      6606e6a2
  5. 14 2月, 2015 1 次提交
  6. 16 12月, 2014 1 次提交
  7. 09 10月, 2014 5 次提交
  8. 12 6月, 2014 1 次提交
  9. 02 4月, 2014 2 次提交
  10. 18 3月, 2014 2 次提交
  11. 15 2月, 2014 1 次提交
  12. 03 9月, 2013 1 次提交
  13. 26 8月, 2013 1 次提交
  14. 10 8月, 2013 3 次提交
  15. 05 6月, 2013 1 次提交
  16. 06 3月, 2012 1 次提交
    • O
      IB/iser: Post initial receive buffers before sending the final login request · 89e984e2
      Or Gerlitz 提交于
      An iser target may send iscsi NO-OP PDUs as soon as it marks the iSER
      iSCSI session as fully operative.  This means that there is window
      where there are no posted receive buffers on the initiator side, so
      it's possible for the iSER RC connection to break because of RNR NAK /
      retry errors.  To fix this, rely on the flags bits in the login
      request to have FFP (0x3) in the lower nibble as a marker for the
      final login request, and post an initial chunk of receive buffers
      before sending that login request instead of after getting the login
      response.
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NRoland Dreier <roland@purestorage.com>
      89e984e2
  17. 05 3月, 2012 1 次提交
  18. 05 11月, 2011 1 次提交
  19. 18 8月, 2011 1 次提交
  20. 25 7月, 2011 1 次提交
    • N
      iscsi: Resolve iscsi_proto.h naming conflicts with drivers/target/iscsi · 12352183
      Nicholas Bellinger 提交于
      This patch renames the following iscsi_proto.h structures to avoid
      namespace issues with drivers/target/iscsi/iscsi_target_core.h:
      
      *) struct iscsi_cmd -> struct iscsi_scsi_req
      *) struct iscsi_cmd_rsp -> struct iscsi_scsi_rsp
      *) struct iscsi_login -> struct iscsi_login_req
      
      This patch includes useful ISCSI_FLAG_LOGIN_[CURRENT,NEXT]_STAGE*,
      and ISCSI_FLAG_SNACK_TYPE_* definitions used by iscsi_target_mod, and
      fixes the incorrect definition of struct iscsi_snack to following
      RFC-3720 Section 10.16. SNACK Request.
      
      Also, this patch updates libiscsi, iSER, be2iscsi, and bn2xi to
      use the updated structure definitions in a handful of locations.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NNicholas A. Bellinger <nab@linux-iscsi.org>
      12352183
  21. 05 8月, 2010 1 次提交
  22. 25 2月, 2010 1 次提交