From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 6 13:36:10 2005 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B248F16A4CE for ; Wed, 6 Apr 2005 13:36:10 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DB6343D3F for ; Wed, 6 Apr 2005 13:36:08 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j36DcKDO045054; Wed, 6 Apr 2005 07:38:20 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4253E539.1030804@samsco.org> Date: Wed, 06 Apr 2005 07:33:45 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Danny Braniss References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: scsi@freebsd.org Subject: Re: iSCSI/CAM error recovery question X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 13:36:10 -0000 Danny Braniss wrote: > I'm now trying to code the error recovery part, at least the part concerning > network problems, so my question is: > is there an error I can return to the CAM, that will cause > a retry of the command? > > danny > > Setting ccb->ccb_h.status = CAM_REQUEUE_REQ will put the CCB back into the device queue to be issued again. That also means that it'll get re-issued immediately, so you'll want to freeze the simq via xpt_freeze_simq() until you're ready to actually handle it. Scott