From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756945AbZCRBvi (ORCPT ); Tue, 17 Mar 2009 21:51:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755499AbZCRBvK (ORCPT ); Tue, 17 Mar 2009 21:51:10 -0400 Received: from smtp122.sbc.mail.sp1.yahoo.com ([69.147.64.95]:43552 "HELO smtp122.sbc.mail.sp1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755533AbZCRBvJ (ORCPT ); Tue, 17 Mar 2009 21:51:09 -0400 X-YMail-OSG: SPTjNuIVM1lvqEGasswbEu1r8s0dNojBgP56BM6lMzWEU.G7petgMFcYC4_DMgEHSBAj.dKcRcTf8UC4WsjCMtlCyXt3p8iuI.JumiuvDLbnKocCMLTvSLEbRDSa1mUWoyyimwJBoQJtKWzNyMO4oWPYMeJhRxR29U9ylAYnqWh7JU3_5bXmji6pv8QrM5gFeQuCQ46Nn6D82dceJgOALKbAVJPCQgo- X-Yahoo-Newman-Property: ymail-3 Subject: [PATCH 0/2] [Target_Core_Mod/Persistent_Reservations]: Updates from PR client testing From: "Nicholas A. Bellinger" To: LKML , linux-scsi Cc: James Bottomley , "Martin K. Petersen" , Andrew Morton , Mike Christie , FUJITA Tomonori , Hannes Reinecke Content-Type: text/plain Date: Tue, 17 Mar 2009 18:50:44 -0700 Message-Id: <1237341044.4214.52.camel@haakon2.linux-iscsi.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greetings all, Here is a couple of bugfixes that have made while myself and the LIO team have been testing RHEL/Centos v5 Cluster Storage (using SCSI fencing) and MSFT Windows 2008 Cluster server using SPC-3 PR aware iSCSI storage from Target_Core_Mod + LIO-Target v3.0. The first was a bug where a held reservation was not being implictly released when the initiator's registration as being freed (this is obvious BUG wrt to SPC-4 language). The second was allowing non WRITE cdbs from unregistered initiators while a registration is held of any Write Exclusive PR Type. I was unable to find any explict language in spc4r17 saying this was allowed, but since both of the client side cluster setups listed above seem to need these CDBs allowed to function, I have gone ahead and allowed these non WRITE CDBs to pass in core_scsi3_pr_seq_non_holder(). These patches are made against lio-core-2.6.git/master and tested on v2.6.29-rc8 x86 32-bit HVM. The lio-core-2.6.git tree can be found at: http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git;a=summary [PATCH 1/2] [Target_Core_Mod/Persistent_Reservations]: Release reservation when freeing registration [PATCH 2/2] [Target_Core_Mod/Persistent_Reservations]: Allow non WRITE CDBs from unregistered initiators drivers/lio-core/target_core_pr.c | 60 ++++++++++++++++++++++++++++++++----- 1 files changed, 52 insertions(+), 8 deletions(-) Thanks to everyone who has been contributing their time and efforts to make SPC-3 compliant target mode emulation on Linux a reality! --nab