/* * dasd_default_erp_action just retries the current cqr
*/ struct dasd_ccw_req *
dasd_default_erp_action(struct dasd_ccw_req *cqr)
{ struct dasd_device *device;
device = cqr->startdev;
/* just retry - there is nothing to save ... I got no sense data.... */ if (cqr->retries > 0) {
DBF_DEV_EVENT(DBF_DEBUG, device, "default ERP called (%i retries left)",
cqr->retries); if (!test_bit(DASD_CQR_VERIFY_PATH, &cqr->flags))
cqr->lpm = dasd_path_get_opm(device);
cqr->status = DASD_CQR_FILLED;
} else {
pr_err("%s: default ERP has run out of retries and failed\n",
dev_name(&device->cdev->dev));
cqr->status = DASD_CQR_FAILED;
cqr->stopclk = get_tod_clock();
} return cqr;
} /* end dasd_default_erp_action */
/* * DESCRIPTION * Frees all ERPs of the current ERP Chain and set the status * of the original CQR either to DASD_CQR_DONE if ERP was successful * or to DASD_CQR_FAILED if ERP was NOT successful. * NOTE: This function is only called if no discipline postaction * is available * * PARAMETER * erp current erp_head * * RETURN VALUES * cqr pointer to the original CQR
*/ struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr)
{ int success; unsignedlong startclk, stopclk; struct dasd_device *startdev;
device = cqr->startdev; if (cqr->intrc == -ETIMEDOUT) {
dev_err(&device->cdev->dev, "A timeout error occurred for cqr %px\n", cqr); return;
} if (cqr->intrc == -ENOLINK) {
dev_err(&device->cdev->dev, "A transport error occurred for cqr %px\n", cqr); return;
} /* dump sense data */ if (device->discipline && device->discipline->dump_sense)
device->discipline->dump_sense(device, cqr, irb);
}
device = cqr->startdev; /* dump sense data to s390 debugfeature*/ if (device->discipline && device->discipline->dump_sense_dbf)
device->discipline->dump_sense_dbf(device, irb, "log");
}
EXPORT_SYMBOL(dasd_log_sense_dbf);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.