From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750931Ab0IJJ0c (ORCPT ); Fri, 10 Sep 2010 05:26:32 -0400 Received: from smtp103.sbc.mail.re3.yahoo.com ([66.196.96.86]:24536 "HELO smtp103.sbc.mail.re3.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750728Ab0IJJ0a (ORCPT ); Fri, 10 Sep 2010 05:26:30 -0400 X-Yahoo-SMTP: fzDSGlOswBCWnIOrNw7KwwK1j9PqyNbe5PtLKiS4dDU.UNl_t6bdEZu9tTLW X-YMail-OSG: 1G.Ou4MVM1kN9c.Nin0xDDZ8WGnvikvn1Lcd9evDlIYyHwn 2TC1BZptWj5QtZFms08AMtrA4nG3IVe2JwJVBNYWuTH0.42CBVUCkGtoLVGJ CO57cq8z1R_L0BfsBFtHNIOltH4RMTDVILCv_KL6RPoY8lYZwVySq5Sd9UwJ I9qhTJXw1__p0fguOZ6nhwhBRadiMyjp5m_vFHQNPvsbNvGqsuFaCOx8txra s0sjG0kKaaIvHa7ZOTjq34HJZflRBZmqk1mRrlZwuHGOgtlUz4dZe X-Yahoo-Newman-Property: ymail-3 From: "Nicholas A. Bellinger" To: linux-scsi , linux-kernel , Joe Eykholt Cc: Christoph Hellwig , FUJITA Tomonori , Mike Christie , Hannes Reinecke , James Bottomley , Konrad Rzeszutek Wilk , Boaz Harrosh , Richard Sharpe , Nicholas Bellinger Subject: [PATCH 0/4] tcm: Add pre-allocated struct se_cmd descriptor support Date: Fri, 10 Sep 2010 02:26:24 -0700 Message-Id: <1284110784-32763-1-git-send-email-nab@linux-iscsi.org> X-Mailer: git-send-email 1.5.6.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Bellinger Greetings Joe and Co, This patch series adds support to TCM Core for allowing TCM fabric modules to use pre-allocated struct se_cmd descriptors and sense data buffers living within fabric module dependent data structures. This patch series was orginally inspiried as a future TCM v4.1 optimization by Joe Eykholt in a thread here: http://groups.google.com/group/linux-iscsi-target-dev/browse_thread/thread/88a6434fa9cad163 The first patch adds the necessary TCM Core infrastructure to support the initialization and proper release of struct se_cmd living within TCM fabric module dependent data structures. This includes the conversion of existing logic and the addition of the new transport_init_se_cmd() EXPORT_SYMBOL() code. The second patch converts the TCM_Loop fabric module to use struct tcm_loop_cmd->tl_se_cmd and struct tcm_loop_cmd->tl_sense_buf. The third patch converts the LIO-Target fabric module to use struct iscsi_cmd->se_cmd and struct iscsi_cmd->sense_buffer. The forth patch converts the Open-FCoE.org / TCM_FC fabric module to use struct ft_cmd->se_cmd and struct ft_cmd->ft_sense_buffer. So far this has been lightly tested with TCM_Loop and LIO-Target fabric modules on v2.6.36-rc3 HVM x86 guest, and will require more testing to properly ensure the patch series is functionally correct, and that other new TCM modules are still 100% functional using the existing *transport_alloc_se_cmd() callers. Many thanks again to Joe for noticing the oppourtunity for improvement within the per I/O descriptor path and making this astute suggestion!! Signed-off-by: Nicholas A. Bellinger Nicholas Bellinger (4): tcm: Add support for fabric module provided struct se_cmd descriptors tcm_loop: Convert to pre-allocated struct se_cmd descriptors lio-target: Convert to use pre-allocated struct se_cmd descriptors tcm_fc: Convert to use pre-allocated struct se_cmd descriptors drivers/target/lio-target/iscsi_target.c | 27 +++-- drivers/target/lio-target/iscsi_target_core.h | 10 ++- drivers/target/lio-target/iscsi_target_erl1.c | 8 +- drivers/target/lio-target/iscsi_target_tmr.c | 23 ++--- drivers/target/lio-target/iscsi_target_util.c | 44 ++++---- drivers/target/target_core_transport.c | 131 +++++++++++++++++++----- drivers/target/tcm_fc/tcm_fc.h | 3 +- drivers/target/tcm_fc/tfc_cmd.c | 59 +++++------ drivers/target/tcm_fc/tfc_io.c | 4 +- drivers/target/tcm_loop/tcm_loop_core.h | 6 +- drivers/target/tcm_loop/tcm_loop_fabric.c | 12 +- drivers/target/tcm_loop/tcm_loop_fabric_scsi.c | 37 +++---- include/target/target_core_base.h | 3 + include/target/target_core_transport.h | 4 + 14 files changed, 226 insertions(+), 145 deletions(-)