|
@@ -1511,7 +1511,7 @@ static int blkif_recover(struct blkfront_info *info)
|
|
merge_bio.tail = copy[i].request->biotail;
|
|
merge_bio.tail = copy[i].request->biotail;
|
|
bio_list_merge(&bio_list, &merge_bio);
|
|
bio_list_merge(&bio_list, &merge_bio);
|
|
copy[i].request->bio = NULL;
|
|
copy[i].request->bio = NULL;
|
|
- blk_put_request(copy[i].request);
|
|
|
|
|
|
+ blk_end_request_all(copy[i].request, 0);
|
|
}
|
|
}
|
|
|
|
|
|
kfree(copy);
|
|
kfree(copy);
|
|
@@ -1534,7 +1534,7 @@ static int blkif_recover(struct blkfront_info *info)
|
|
req->bio = NULL;
|
|
req->bio = NULL;
|
|
if (req->cmd_flags & (REQ_FLUSH | REQ_FUA))
|
|
if (req->cmd_flags & (REQ_FLUSH | REQ_FUA))
|
|
pr_alert("diskcache flush request found!\n");
|
|
pr_alert("diskcache flush request found!\n");
|
|
- __blk_put_request(info->rq, req);
|
|
|
|
|
|
+ __blk_end_request_all(req, 0);
|
|
}
|
|
}
|
|
spin_unlock_irq(&info->io_lock);
|
|
spin_unlock_irq(&info->io_lock);
|
|
|
|
|