From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752942Ab0IOMGl (ORCPT ); Wed, 15 Sep 2010 08:06:41 -0400 Received: from smtp111.sbc.mail.mud.yahoo.com ([68.142.198.207]:38611 "HELO smtp111.sbc.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752665Ab0IOMGj (ORCPT ); Wed, 15 Sep 2010 08:06:39 -0400 X-Yahoo-SMTP: fzDSGlOswBCWnIOrNw7KwwK1j9PqyNbe5PtLKiS4dDU.UNl_t6bdEZu9tTLW X-YMail-OSG: sX7LO0gVM1nX8oJ7frmAhfxzF0rboHYyswc9m8fu_hA5V5B IWBM2NbS4gk7CVruTlQ0bzhfGTXeXoYR0LMAmFHC4BrVzd_UdSAUvU6R65Uo 8h8VZ5zIVTi9OkegrLbn3lBbJTHObIpVqy.2.l6ANS0Gii4K6AK3reIHHOwd s5QGGod6iqLLDf4zAq6mYvnpUOSydVbowAd3h34vtAqnME7IBPTx0Qyb7Lm8 SJC79JV9rNZyGgvrPHPPOGvB_SKJcDzyJgCgP9k0J2irtzdNU6U8p5.gB72S _7VEf8r8mIBvFufRQo9ZAJfXZQ9qOhCDzdQSDfwE3Sz61zigDmY2E12wNaQa VY6cGM.JO_Lc2gqv3Rw-- X-Yahoo-Newman-Property: ymail-3 From: "Nicholas A. Bellinger" To: linux-scsi , linux-kernel , Boaz Harrosh , FUJITA Tomonori Cc: Mike Christie , Hannes Reinecke , James Bottomley , Konrad Rzeszutek Wilk , Douglas Gilbert , Joe Eykholt , Nicholas Bellinger Subject: [PATCH 0/2] tcm/tcm_loop: Add BIDI support and XDWRITE_READ_10 emulation Date: Wed, 15 Sep 2010 05:06:34 -0700 Message-Id: <1284552394-30525-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 Boaz, Tomo-san and Co, This series adds initial support for functional bidirectional CDBs into TCM_Core and the TCM_Loop fabric module. So far this is limited to XDWRITE_READ_10 emulation following scsi_debug.c, but everything appears to now be functioning as expected. This first patch adds support for BIDI operations and XDWRITE_READ_10 emulation into TCM_Core for the individual I/O descriptor setup, memory mapping, callback and release codepaths. The second patch enables BIDI operations with the TCM_Loop Virtual SCSI LLD fabric module using the updated callers. So far this has been lightly tested on v2.6.36-rc3 HVM using custom userspace BSG code to issue XDWRITE_READ_10 I/O into TCM_Loop LUNs using FILEIO backstores. Support for BIDI CDBs will also extend to LIO-Target and other TCM fabric modules in the near future. Comments are welcome! Signed-off-by: Nicholas A. Bellinger Nicholas Bellinger (2): tcm: Add support for BIDI operation and XDWRITE_READ_10 emulation tcm_loop: Add DMA_BIDIRECTIONAL CDB support drivers/target/target_core_transport.c | 282 +++++++++++++++++++++--- drivers/target/tcm_loop/tcm_loop_fabric_scsi.c | 48 +++- include/target/target_core_base.h | 9 +- include/target/target_core_transport.h | 10 +- 4 files changed, 297 insertions(+), 52 deletions(-)