ahc_set_transaction_status() takes an SCB. This makes it difficult to

use this helper function to report an error when SCB allocation fails.
This commit is contained in:
Justin T. Gibbs 2000-10-01 20:56:44 +00:00
parent 31305937b3
commit 155c0683c7
2 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ ahc_action(struct cam_sim *sim, union ccb *ccb)
ahc->flags |= AHC_RESOURCE_SHORTAGE;
ahc_unlock(ahc, &s);
xpt_freeze_simq(sim, /*count*/1);
ahc_set_transaction_status(scb, CAM_REQUEUE_REQ);
ccb->ccb_h.status = CAM_REQUEUE_REQ;
xpt_done(ccb);
return;
}

View File

@ -439,7 +439,7 @@ ahc_action(struct cam_sim *sim, union ccb *ccb)
ahc->flags |= AHC_RESOURCE_SHORTAGE;
ahc_unlock(ahc, &s);
xpt_freeze_simq(sim, /*count*/1);
ahc_set_transaction_status(scb, CAM_REQUEUE_REQ);
ccb->ccb_h.status = CAM_REQUEUE_REQ;
xpt_done(ccb);
return;
}