Message ID | 5f77b2dbcb0819a9287de39542cf97654481b63b.1497549993.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 b8a3a65..e7fa7d0 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 7a5c8ed..4ee6c55 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); }