Return-Path: <owner-ips-outgoing@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips-outgoing@ece.cmu.edu>
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h4V17P320031
	for <ipsml@ece.cmu.edu>; Fri, 30 May 2003 21:07:25 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id CEFB88D; Fri, 30 May 2003 21:07:24 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by hazard.ece.cmu.edu (Postfix) with ESMTP
	id A217883; Fri, 30 May 2003 21:07:20 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix)
	id DE13B89D6; Fri, 30 May 2003 21:07:06 -0400 (EDT)
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by sos.ece.cmu.edu (Postfix) with ESMTP id C5C568950
	for <ips-outgoing@sos.ece.cmu.edu>; Fri, 30 May 2003 21:07:06 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id A021683; Fri, 30 May 2003 21:07:06 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 8027087; Fri, 30 May 2003 21:07:06 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by hazard.ece.cmu.edu (Postfix) with ESMTP id 6571283
	for <ips-outgoing@ece.cmu.edu>; Fri, 30 May 2003 21:07:04 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix, from userid 363)
	id 3FE0F89D7; Fri, 30 May 2003 21:07:04 -0400 (EDT)
X-Original-To: ips@sos.ece.cmu.edu
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by sos.ece.cmu.edu (Postfix) with ESMTP id 1C2588950
	for <ips@sos.ece.cmu.edu>; Fri, 30 May 2003 21:07:02 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id 8916D83; Fri, 30 May 2003 21:07:01 -0400 (EDT)
Delivered-To: ips@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 6AE1787; Fri, 30 May 2003 21:07:01 -0400 (EDT)
Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238])
	by hazard.ece.cmu.edu (Postfix) with ESMTP id E112B83
	for <ips@ece.cmu.edu>; Fri, 30 May 2003 21:06:58 -0400 (EDT)
Received: from rosemail.rose.hp.com (rosemail.rose.hp.com [15.96.64.26])
	by palrel13.hp.com (Postfix) with ESMTP
	id 2E6951C010F2; Fri, 30 May 2003 18:06:58 -0700 (PDT)
Received: from swathi (dhcp-rosefl-bba183.rose.hp.com [15.3.110.183]) by rosemail.rose.hp.com with SMTP (8.7.1/8.7.3 SMKit7.02) id SAA05728; Fri, 30 May 2003 18:06:54 -0700 (PDT)
Message-ID: <005b01c32710$ec29d3b0$b76e030f@rose.hp.com>
From: "Mallikarjun C." <cbm@rose.hp.com>
To: "Lakshmi Ramasubramanian" <nramas@windows.microsoft.com>,
   "Julian Satran" <Julian_Satran@il.ibm.com>, <ips@ece.cmu.edu>
References: <DDE1793D7266AD488BB4F5E8D38EACB801193E98@WIN-MSG-10.wingroup.windeploy.ntdev.microsoft.com>
Subject: Re: iSCSI: Plugging holes in CmdSN
Date: Fri, 30 May 2003 18:06:00 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-ips@ece.cmu.edu
Precedence: bulk
X-Spam-Status: No, hits=-12.9 required=5.0
	tests=BAYES_10,QUOTE_TWICE_1,REFERENCES
	version=2.50
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)

Lakshmi,

Comments below.
--
Mallikarjun

Mallikarjun Chadalapaka
Networked Storage Architecture
Network Storage Solutions
Hewlett-Packard MS 5668 
Roseville CA 95747
cbm@rose.hp.com

----- Original Message ----- 
From: "Lakshmi Ramasubramanian" <nramas@windows.microsoft.com>
To: "Julian Satran" <Julian_Satran@il.ibm.com>; <ips@ece.cmu.edu>
Sent: Friday, May 30, 2003 12:59 PM
Subject: iSCSI: Plugging holes in CmdSN


>If the target detects data digest error in a PDU,
>and sends Reject the initiator 

I assume you mean the SCSI command PDU above.

> 
> * MAY retry the command with the same CmdSN, TaskTag, etc. 
> 
> * Or, Send a Task Mgmt command to ABORT TASK that task.
> 
>Target will not advance ExpCmdSN until initiator does something
>to clear the rejected command.

Yes, one of the two must happen (or the session drop, of course).

> 
>But, can the initiator send a Task Mgmt command with function
>LU Reset (instead of ABORT TASK) as IMMEDIATE command? 

The initiator may.  Because the LU Reset is an immediate command, it will be
processed by the iSCSI layer and then the SCSI layer and an LU Reset
action will result.

>Should 
>the target then clear the rejected command and any command that 
>was received after that? And, advance the ExpCmdSN so that initiator
>can proceed with that session?

I am not sure what you mean by "clear the rejected command".  

As for advancing ExpCmdSN, I don't think that is the legal behavior.  Unless
the target has a RefCmdSN to plug a hole, it cannot plug a CmdSN hole.
And only the Abort Task TMF has the RefCmdSN.  The iSCSI layer on
target cannot afford to simply plug all the CmdSN holes with an LU Reset 
because there may be commands destined to other LUs already in the CmdSN 
reordering queue.  Also, the iSCSI layer on the target does not look at the 
LUN field of each task - as a design rule.

 
 


