diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c index 17896bb3aaf28da2b3440a537305ba3d0ad2133d..e8859350ab6ea0b25def8a76b5f99ea3db404405 100644 --- a/block/blk-iolatency.c +++ b/block/blk-iolatency.c @@ -600,6 +600,10 @@ static void blkcg_iolatency_done_bio(struct rq_qos *rqos, struct bio *bio) if (!blkg || !bio_flagged(bio, BIO_TRACKED)) return; + /* We didn't actually submit this bio, don't account it. */ + if (bio->bi_status == BLK_STS_AGAIN) + return; + iolat = blkg_to_lat(bio->bi_blkg); if (!iolat) return;