Date: Wed, 06 Apr 2005 07:33:45 -0600 From: Scott Long <scottl@samsco.org> To: Danny Braniss <danny@cs.huji.ac.il> Cc: scsi@freebsd.org Subject: Re: iSCSI/CAM error recovery question Message-ID: <4253E539.1030804@samsco.org> In-Reply-To: <E1DJ7bC-000E7H-Dw@cs1.cs.huji.ac.il> References: <E1DJ7bC-000E7H-Dw@cs1.cs.huji.ac.il>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4253E539.1030804>