iSCSI/CAM error recovery question

Scott Long scottl at samsco.org
Wed Apr 6 06:36:10 PDT 2005


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


More information about the freebsd-scsi mailing list