Return-Path: <owner-ips-outgoing@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips-outgoing@ece.cmu.edu>
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h4VI3f303678
	for <ipsml@ece.cmu.edu>; Sat, 31 May 2003 14:03:41 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id 1130095; Sat, 31 May 2003 14:03:41 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by osgood.ece.cmu.edu (Postfix) with ESMTP
	id 1EB666E; Sat, 31 May 2003 14:03:37 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix)
	id E23A7894F; Sat, 31 May 2003 14:03:19 -0400 (EDT)
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by sos.ece.cmu.edu (Postfix) with ESMTP id D065C894A
	for <ips-outgoing@sos.ece.cmu.edu>; Sat, 31 May 2003 14:03:19 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix)
	id AD9E46A; Sat, 31 May 2003 14:03:19 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id 7E03E95; Sat, 31 May 2003 14:03:19 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by osgood.ece.cmu.edu (Postfix) with ESMTP id EA9FD6A
	for <ips-outgoing@ece.cmu.edu>; Sat, 31 May 2003 14:03:15 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix, from userid 363)
	id B59878950; Sat, 31 May 2003 14:03:15 -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 45C63894A
	for <ips@sos.ece.cmu.edu>; Sat, 31 May 2003 14:03:14 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id B5F0E82; Sat, 31 May 2003 14:03:13 -0400 (EDT)
Delivered-To: ips@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 8C1258D; Sat, 31 May 2003 14:03:13 -0400 (EDT)
Received: from d12lmsgate-4.de.ibm.com (d12lmsgate-4.de.ibm.com [194.196.100.237])
	by hazard.ece.cmu.edu (Postfix) with ESMTP id 74F5282
	for <ips@ece.cmu.edu>; Sat, 31 May 2003 14:03:09 -0400 (EDT)
Received: from d12relay02.megacenter.de.ibm.com (d12relay02.megacenter.de.ibm.com [9.149.165.196])
	by d12lmsgate-4.de.ibm.com (8.12.9/8.12.8) with ESMTP id h4VI32DI057440;
	Sat, 31 May 2003 20:03:02 +0200
Received: from d10ml001.telaviv.ibm.com (d10ml001.telaviv.ibm.com [9.148.216.55])
	by d12relay02.megacenter.de.ibm.com (8.12.9/NCO/VER6.5) with ESMTP id h4VI2rAj285640;
	Sat, 31 May 2003 20:03:02 +0200
X-Priority: 1 (High)
In-Reply-To: <005b01c32710$ec29d3b0$b76e030f@rose.hp.com>
To: "Mallikarjun C." <cbm@rose.hp.com>
Cc: ips@ece.cmu.edu, "Lakshmi Ramasubramanian" <nramas@windows.microsoft.com>
Subject: Re: iSCSI: Plugging holes in CmdSN
MIME-Version: 1.0
Importance: High
X-Mailer: Lotus Notes Release 6.0.1 February 07, 2003
From: "Julian Satran" <Julian_Satran@il.ibm.com>
Message-ID: <OF82E53D50.90A7F5AF-ONC2256D37.005D455A-C2256D37.0063233B@telaviv.ibm.com>
Date: Sat, 31 May 2003 21:02:50 +0300
X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.9a |January 7, 2002) at
 31/05/2003 21:03:01,
	Serialize complete at 31/05/2003 21:03:01
Content-Type: multipart/alternative; boundary="=_alternative 005D834AC2256D37_="
Sender: owner-ips@ece.cmu.edu
Precedence: bulk
X-Spam-Status: No, hits=-7.5 required=5.0
	tests=BAYES_01,HTML_10_20,IN_REP_TO,QUOTE_TWICE_1,X_PRIORITY_HIGH
	version=2.50
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)

This is a multipart message in MIME format.
--=_alternative 005D834AC2256D37_=
Content-Type: text/plain; charset="US-ASCII"

Lakshmi,

Mallikarjun is correct and I was obviously wrong in my previous answer (I 
should have read carefully your question) I was thinging about the "big 
hammer" target reset that is optional in iSCSI (and now in SPC3 too).

Julo



"Mallikarjun C." <cbm@rose.hp.com> 
31/05/03 04:06

To
"Lakshmi Ramasubramanian" <nramas@windows.microsoft.com>, Julian 
Satran/Haifa/IBM@IBMIL, <ips@ece.cmu.edu>
cc

Subject
Re: iSCSI: Plugging holes in CmdSN






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.

 
 




--=_alternative 005D834AC2256D37_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Lakshmi,</font>
<br>
<br><font size=2 face="sans-serif">Mallikarjun is correct and I was obviously
wrong in my previous answer (I should have read carefully your question)
I was thinging about the &quot;big hammer&quot; target reset that is optional
in iSCSI (and now in SPC3 too).</font>
<br>
<br><font size=2 face="sans-serif">Julo</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Mallikarjun C.&quot;
&lt;cbm@rose.hp.com&gt;</b> </font>
<p><font size=1 face="sans-serif">31/05/03 04:06</font>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">&quot;Lakshmi Ramasubramanian&quot;
&lt;nramas@windows.microsoft.com&gt;, Julian Satran/Haifa/IBM@IBMIL, &lt;ips@ece.cmu.edu&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: iSCSI: Plugging holes
in CmdSN</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Lakshmi,<br>
<br>
Comments below.<br>
--<br>
Mallikarjun<br>
<br>
Mallikarjun Chadalapaka<br>
Networked Storage Architecture<br>
Network Storage Solutions<br>
Hewlett-Packard MS 5668 <br>
Roseville CA 95747<br>
cbm@rose.hp.com<br>
<br>
----- Original Message ----- <br>
From: &quot;Lakshmi Ramasubramanian&quot; &lt;nramas@windows.microsoft.com&gt;<br>
To: &quot;Julian Satran&quot; &lt;Julian_Satran@il.ibm.com&gt;; &lt;ips@ece.cmu.edu&gt;<br>
Sent: Friday, May 30, 2003 12:59 PM<br>
Subject: iSCSI: Plugging holes in CmdSN<br>
<br>
<br>
&gt;If the target detects data digest error in a PDU,<br>
&gt;and sends Reject the initiator <br>
<br>
I assume you mean the SCSI command PDU above.<br>
<br>
&gt; <br>
&gt; * MAY retry the command with the same CmdSN, TaskTag, etc. <br>
&gt; <br>
&gt; * Or, Send a Task Mgmt command to ABORT TASK that task.<br>
&gt; <br>
&gt;Target will not advance ExpCmdSN until initiator does something<br>
&gt;to clear the rejected command.<br>
<br>
Yes, one of the two must happen (or the session drop, of course).<br>
<br>
&gt; <br>
&gt;But, can the initiator send a Task Mgmt command with function<br>
&gt;LU Reset (instead of ABORT TASK) as IMMEDIATE command? <br>
<br>
The initiator may. &nbsp;Because the LU Reset is an immediate command,
it will be<br>
processed by the iSCSI layer and then the SCSI layer and an LU Reset<br>
action will result.<br>
<br>
&gt;Should <br>
&gt;the target then clear the rejected command and any command that <br>
&gt;was received after that? And, advance the ExpCmdSN so that initiator<br>
&gt;can proceed with that session?<br>
<br>
I am not sure what you mean by &quot;clear the rejected command&quot;.
&nbsp;<br>
<br>
As for advancing ExpCmdSN, I don't think that is the legal behavior. &nbsp;Unless<br>
the target has a RefCmdSN to plug a hole, it cannot plug a CmdSN hole.<br>
And only the Abort Task TMF has the RefCmdSN. &nbsp;The iSCSI layer on<br>
target cannot afford to simply plug all the CmdSN holes with an LU Reset
<br>
because there may be commands destined to other LUs already in the CmdSN
<br>
reordering queue. &nbsp;Also, the iSCSI layer on the target does not look
at the <br>
LUN field of each task - as a design rule.<br>
<br>
 <br>
 <br>
<br>
<br>
</tt></font>
<br>
--=_alternative 005D834AC2256D37_=--
