Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALID
and CAM_LUN_INVALID for case of missing devices. In removes tons of error messages from CAM during bus scans. Reported and tested by: Mike Tancsa <mike@sentex.net> MFC after: 3 days
This commit is contained in:
parent
23bc7025c4
commit
15a0920e21
@ -678,9 +678,9 @@ tw_osl_complete_io(struct tw_cl_req_handle *req_handle)
|
||||
ccb->ccb_h.status = CAM_REQ_CMP;
|
||||
else {
|
||||
if (req_pkt->status & TW_CL_ERR_REQ_INVALID_TARGET)
|
||||
ccb->ccb_h.status |= CAM_TID_INVALID;
|
||||
ccb->ccb_h.status |= CAM_SEL_TIMEOUT;
|
||||
else if (req_pkt->status & TW_CL_ERR_REQ_INVALID_LUN)
|
||||
ccb->ccb_h.status |= CAM_LUN_INVALID;
|
||||
ccb->ccb_h.status |= CAM_DEV_NOT_THERE;
|
||||
else if (req_pkt->status & TW_CL_ERR_REQ_SCSI_ERROR)
|
||||
ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
|
||||
else if (req_pkt->status & TW_CL_ERR_REQ_BUS_RESET)
|
||||
|
Loading…
Reference in New Issue
Block a user