--- x/block/bio.c +++ y/block/bio.c @@ -1208,11 +1208,8 @@ static int bio_iov_add_page(struct bio * if (!__bio_try_merge_page(bio, page, len, offset, &same_page)) { __bio_add_page(bio, page, len, offset); - return 0; } - if (same_page) - bio_release_page(bio, page); return 0; } @@ -1225,8 +1222,6 @@ static int bio_iov_add_zone_append_page( if (bio_add_hw_page(q, bio, page, len, offset, queue_max_zone_append_sectors(q), &same_page) != len) return -EINVAL; - if (same_page) - bio_release_page(bio, page); return 0; }