diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-05-05 13:42:10 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-05-05 13:43:26 -0400 |
commit | 3d68b39926b3b247d76cc4da0256e979b2b730e3 (patch) | |
tree | fb6cb2783220f2d52189d5bf40a067d5c82c98b2 | |
parent | fc53bf757ede292312eee10d64f4e691c8c8cebf (diff) |
xen/blkback: Fix up some of the comments.
They had the wrong data or were in the wrong spot.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r-- | drivers/block/xen-blkback/blkback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index 5f4284729a3a..b9bdd9e43ab9 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c | |||
@@ -603,7 +603,7 @@ static int dispatch_rw_block_io(struct blkif_st *blkif, | |||
603 | if (xen_blkbk_map(req, pending_req, seg)) | 603 | if (xen_blkbk_map(req, pending_req, seg)) |
604 | goto fail_flush; | 604 | goto fail_flush; |
605 | 605 | ||
606 | /* This corresponding blkif_put is done in __end_block_io_op */ | 606 | /* This corresponding xen_blkif_put is done in __end_block_io_op */ |
607 | xen_blkif_get(blkif); | 607 | xen_blkif_get(blkif); |
608 | 608 | ||
609 | for (i = 0; i < nseg; i++) { | 609 | for (i = 0; i < nseg; i++) { |
@@ -626,7 +626,7 @@ static int dispatch_rw_block_io(struct blkif_st *blkif, | |||
626 | preq.sector_number += seg[i].nsec; | 626 | preq.sector_number += seg[i].nsec; |
627 | } | 627 | } |
628 | 628 | ||
629 | /* This will be hit if the operation was a barrier. */ | 629 | /* This will be hit if the operation was a flush. */ |
630 | if (!bio) { | 630 | if (!bio) { |
631 | BUG_ON(operation != WRITE_FLUSH); | 631 | BUG_ON(operation != WRITE_FLUSH); |
632 | bio = biolist[nbio++] = bio_alloc(GFP_KERNEL, 0); | 632 | bio = biolist[nbio++] = bio_alloc(GFP_KERNEL, 0); |
@@ -650,8 +650,8 @@ static int dispatch_rw_block_io(struct blkif_st *blkif, | |||
650 | for (i = 0; i < nbio; i++) | 650 | for (i = 0; i < nbio; i++) |
651 | submit_bio(operation, biolist[i]); | 651 | submit_bio(operation, biolist[i]); |
652 | 652 | ||
653 | blk_finish_plug(&plug); | ||
654 | /* Let the I/Os go.. */ | 653 | /* Let the I/Os go.. */ |
654 | blk_finish_plug(&plug); | ||
655 | 655 | ||
656 | if (operation == READ) | 656 | if (operation == READ) |
657 | blkif->st_rd_sect += preq.nr_sects; | 657 | blkif->st_rd_sect += preq.nr_sects; |