Return-Path: <owner-ips-outgoing@ece.cmu.edu>
Received: from newbox.ece.cmu.edu (localhost [127.0.0.1])
	by newbox.ece.cmu.edu (Cyrus v2.1.12) with LMTP; Tue, 05 Aug 2003 09:49:32 -0400
X-Sieve: CMU Sieve 2.2
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by newbox.ece.cmu.edu (Postfix) with ESMTP id 0D501307F
	for <ipsml@ece.cmu.edu>; Tue,  5 Aug 2003 09:49:32 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id B18EB8E; Tue,  5 Aug 2003 09:49:31 -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 46D6188; Tue,  5 Aug 2003 09:49:29 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix)
	id 8544F89E9; Tue,  5 Aug 2003 09:49:20 -0400 (EDT)
Delivered-To: ips-outgoing@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 76E0489E7
	for <ips-outgoing@sos.ece.cmu.edu>; Tue,  5 Aug 2003 09:49:20 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id 5AB67149; Tue,  5 Aug 2003 09:49:20 -0400 (EDT)
Delivered-To: ips-outgoing@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 329E0164; Tue,  5 Aug 2003 09:49:20 -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 3A3B5162
	for <ips-outgoing@ece.cmu.edu>; Tue,  5 Aug 2003 09:49:18 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix, from userid 363)
	id 0F8D189EC; Tue,  5 Aug 2003 09:49:18 -0400 (EDT)
X-Original-To: ips@sos.ece.cmu.edu
Delivered-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 4823189E7
	for <ips@sos.ece.cmu.edu>; Tue,  5 Aug 2003 09:49:16 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id B80E0162; Tue,  5 Aug 2003 09:49:15 -0400 (EDT)
Delivered-To: ips@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 94031168; Tue,  5 Aug 2003 09:49:15 -0400 (EDT)
Received: from firegate.attotech.com (firegate.attotech.com [12.32.232.50])
	by hazard.ece.cmu.edu (Postfix) with ESMTP id 6756E164
	for <ips@ece.cmu.edu>; Tue,  5 Aug 2003 09:49:12 -0400 (EDT)
Received: from [172.16.1.48] by firegate.attotech.com
	for ips@ece.cmu.edu
	id JAA29997; Tue Aug  5 09:45:55 2003
Subject: StatSN and overlapped commands
Message-ID: <OF7727DEFB.1114C870-ON85256D79.004A2144@attotech.com>
Date: Tue, 5 Aug 2003 09:45:43 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
To: ips@ece.cmu.edu
From: dcuddihy@attotech.com
Sender: owner-ips@ece.cmu.edu
Precedence: bulk
X-Spam-Status: No, hits=-5.6 required=5.0
	tests=BAYES_01,NO_REAL_NAME
	version=2.50
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)

I have a question about the lifespan of SCSI tasks on ISCSI.  My apologies
if it's been addressed on the reflector previously.

Put simply, is a SCSI task considered completed when status is returned to
the initiator, or when status is acknowledged via ExpStatSN?

This causes a difference in behavior for untagged SCSI commands.  Consider:

Initiator: SCSI Command = Write: Attr = Untagged (0) : InitiatorTaskTag=5:
CmdSN=4: ExpStatSn = 3
Target:  R2T: InitiatorTaskTag = 5
Initiator: SCSI Data: Initiator Task Tag = 5
Target: SCSI Status = Good:  Initiator Task Tag = 5: StatSn = 3
Initiator: Scsi Command = Write: Attr = Untagged (0) : Initiator Task Tag
= 6: CmdSN=5: ExpStatSn = 3
.
.
(Somewhere down the line a scsi command with ExpStatSN of 4 is sent, ACKing
the Status to ITT #5)
.
.

Is this an overlapped command error, since the SCSI task is still
oustanding until the status is acknowledge?
Or -- is the SCSI command considered completed as soon as status is
attempted (much like the clearing of a Congingent Allegiance as soon as
status is started to the host)?  That would mean that this is a legal
exchange.  If so, does this cause problems with command recovery as
described in section 3.2.2.2 ?

Thanks!

david



David J Cuddihy
Principal Engineer
ATTO Technology, Inc.
http://www.attotech.com/fcbridge.html
dcuddihy@attotech.com



