They had the wrong data or were in the wrong spot.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
if (xen_blkbk_map(req, pending_req, seg))
goto fail_flush;
if (xen_blkbk_map(req, pending_req, seg))
goto fail_flush;
- /* This corresponding blkif_put is done in __end_block_io_op */
+ /* This corresponding xen_blkif_put is done in __end_block_io_op */
xen_blkif_get(blkif);
for (i = 0; i < nseg; i++) {
xen_blkif_get(blkif);
for (i = 0; i < nseg; i++) {
preq.sector_number += seg[i].nsec;
}
preq.sector_number += seg[i].nsec;
}
- /* This will be hit if the operation was a barrier. */
+ /* This will be hit if the operation was a flush. */
if (!bio) {
BUG_ON(operation != WRITE_FLUSH);
bio = biolist[nbio++] = bio_alloc(GFP_KERNEL, 0);
if (!bio) {
BUG_ON(operation != WRITE_FLUSH);
bio = biolist[nbio++] = bio_alloc(GFP_KERNEL, 0);
for (i = 0; i < nbio; i++)
submit_bio(operation, biolist[i]);
for (i = 0; i < nbio; i++)
submit_bio(operation, biolist[i]);
- blk_finish_plug(&plug);
+ blk_finish_plug(&plug);
if (operation == READ)
blkif->st_rd_sect += preq.nr_sects;
if (operation == READ)
blkif->st_rd_sect += preq.nr_sects;