/* * Fault injection ublk target. Hack this up however you like for * testing specific behaviors of ublk_drv. Currently is a null target * with a configurable delay before completing each I/O. This delay can * be used to test ublk_drv's handling of I/O outstanding to the ublk * server when it dies.
*/
if (cqe->res != -ETIME)
ublk_err("%s: unexpected cqe res %d\n", __func__, cqe->res);
if (ublk_completed_tgt_io(t, q, tag))
ublk_complete_io(t, q, tag, iod->nr_sectors << 9); else
ublk_err("%s: io not complete after 1 cqe\n", __func__);
}
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.