1. 24 Jun, 2011 1 commit
    • Kiran Patil's avatar
      tcm_fc: Fix ft_send_tm LUN lookup OOPs · 61db9527
      Kiran Patil authored
      
      This patch fixes a bug in ft_send_tm() that was incorrectly calling
      ft_get_lun_for_cmd() -> transport_get_lun_for_cmd(), instead of using
      transport_get_lun_for_tmr() for the proper struct se_lun lookup
      that was triggering an OOPs in the se_cmd->tmr_req failure path.
      
      This patch fixes the issue by re-arranging the codepath where
      transport_get_lun_for_tmr() is called after tmr request is allocated and
      made it available as part of se_cmd.
      
      It also drops the now unnecessary ft_get_lun_for_cmd() unpacking code, and
      uses scsilun_to_int() directly ahead of transport_get_lun_for_cmd() and
      transport_get_lun_for_tmr() usage.
      Signed-off-by: default avatarPatil, Kiran <kiran.patil@intel.com>
      Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
      Signed-off-by: default avatarNicholas A. Bellinger <nab@linux-iscsi.org>
      61db9527
  2. 27 May, 2011 1 commit
  3. 24 May, 2011 1 commit
  4. 17 May, 2011 1 commit
    • Kiran Patil's avatar
      [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support · 3699d92a
      Kiran Patil authored
      This is a comprehensive patch for FC-FC4 provider. tcm_fc is a FC-FC4
      provider which glues target core (TCM) with Fiber channel library
      (libfc). tcm_fc uses existing FC4 provider hooks from Fiber channel
      library. This Fiber channel library is used by FCoE (transport - FC
      over Ethernet) protocol driver as well.
      
      Combination of modules such as Fiber channel library, tcm_fc, TCM
      target core, and FCoE protocol driver enables functional FCoE target.
      
      This patch includes initial commit for tcm_fc plus additional
      enhancement, bug fixes.
      
      This tcm_fc module essentially contains 3 entry points such as "prli",
      "prlo", "recv".  When process login request (ELS_PRLI) request is
      received, Fiber channel library (libfc) module calls passive providers
      (FC-FC4, tcm_fc) (if any registered) "prli" function. Likewise when
      LOGO request is received, "prlo" function of passive provider is
      invoked by libfc.  For all other request (e.g. any ...
      3699d92a