Message ID | 6019e3e30918ea37c262d6dcdc89ee5edf2c84ed.1497455937.git.shli@fb.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/bio-integrity.c b/block/bio-integrity.c index b5009a8..869ac7a 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -120,6 +120,7 @@ void bio_integrity_free(struct bio *bio) } bio->bi_integrity = NULL; + bio->bi_opf &= ~REQ_INTEGRITY; } EXPORT_SYMBOL(bio_integrity_free); diff --git a/block/bio.c b/block/bio.c index 888e780..9bfd8d4 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1823,6 +1823,8 @@ void bio_endio(struct bio *bio) } blk_throtl_bio_endio(bio); + /* release cgroup/integrity info */ + __bio_free(bio); if (bio->bi_end_io) bio->bi_end_io(bio); }