Lines Matching defs:bio
7 * - It's bio based, so the latency covers the whole block layer in addition to
14 * that we can have as many outstanding bio's as we're allowed to. Only at
465 static void blkcg_iolatency_throttle(struct rq_qos *rqos, struct bio *bio)
468 struct blkcg_gq *blkg = bio->bi_blkg;
469 bool issue_as_root = bio_issue_as_root_blkg(bio);
483 (bio->bi_opf & REQ_SWAP) == REQ_SWAP);
509 * We don't want to count issue_as_root bio's in the cgroups latency
593 static void blkcg_iolatency_done_bio(struct rq_qos *rqos, struct bio *bio)
600 bool issue_as_root = bio_issue_as_root_blkg(bio);
603 blkg = bio->bi_blkg;
604 if (!blkg || !bio_flagged(bio, BIO_TRACKED))
607 iolat = blkg_to_lat(bio->bi_blkg);
626 * If bi_status is BLK_STS_AGAIN, the bio wasn't actually
629 if (iolat->min_lat_nsec && bio->bi_status != BLK_STS_AGAIN) {
630 iolatency_record_time(iolat, &bio->bi_issue, now,