From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753Ab0IVFup (ORCPT ); Wed, 22 Sep 2010 01:50:45 -0400 Received: from smtp101.sbc.mail.ne1.yahoo.com ([98.138.84.212]:31571 "HELO smtp101.sbc.mail.ne1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752651Ab0IVFup (ORCPT ); Wed, 22 Sep 2010 01:50:45 -0400 X-Yahoo-SMTP: fzDSGlOswBCWnIOrNw7KwwK1j9PqyNbe5PtLKiS4dDU.UNl_t6bdEZu9tTLW X-YMail-OSG: TahkYngVM1nN1ru01CRiaA39nMd4Mg2TvS27fdkh4h2ZA2A wCUMX7fUhOAsMdUJLKODnGI9z3AbdA_jeuZ.OYsr_vRmpD2LH_oPaIn7.IdF Fm6nl9mBwM0_Ayf4mOxl_DLpXhd9IKhCrsuOvi.0oxSl5.TpBS8fSDg_kT7n yYfakRU6I8VTtKvtediZlsSlPKwmVKiaCUZujxxmAk_sTP_3nqO2.EGMgOiA 7MIlNxws7SqImrh4z.CguCcwCAGHkPx4YbKzr5ktkeHMQ1lM0GViKV4niMJe nHQ5B5EgGUWdwQyEYPpeFMUEqwG_4S8syfXiPZ5sfOEVEAHY0MlhBekg- X-Yahoo-Newman-Property: ymail-3 From: "Nicholas A. Bellinger" To: linux-scsi , linux-kernel Cc: James Bottomley , Douglas Gilbert , FUJITA Tomonori , Boaz Harrosh , Nicholas Bellinger Subject: [PATCH 0/2] scsi/scsi_debug: Add missing scsi.h defs and XDWRITEREAD_32 support Date: Tue, 21 Sep 2010 22:50:40 -0700 Message-Id: <1285134640-7720-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 Hi Doug and James, Attached are two patches for Linux/SCSI that I ended up needing to allow the simple XDWRITEREAD_32 passthrough into TCM/pSCSI -> struct request -> SCSI Midlayer in recent lio-core-2.6.git/lio-4.0 commits. The first adds some missing SPC-4 CDB and MAINTENANCE_[IN,OUT] + VARIABLE_LENGTH_CMD service actions to include/scsi/scsi.h. These are used by TCM Core code and pieces of this patch have been posted here for the RFC before: http://marc.info/?l=linux-scsi&m=128316041105964&w=2 The second adds XDWRITEREAD_32 emulation to scsi_debug, which is pretty quite simple because everything we need is already handled by XDWRITEREAD_10. 8-) This has been tested using 'sgv4_xdwriteread -e' with TCM_Loop -> TCM/pSCSI -> scsi_debug 32-byte BIDI-COMMAND CDB passthrough on v2.6.36-rc4. Thanks! Signed-off-by: Nicholas A. Bellinger Nicholas Bellinger (2): scsi: Add missing SPC-4 CDB and MAINTENANCE_[IN,OUT] and VARIABLE_LENGTH_CMD service actions scsi_debug: Add XDWRITEREAD_32 support drivers/scsi/scsi_debug.c | 3 +++ include/scsi/scsi.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 0 deletions(-) -- 1.7.3