aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 14:53:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 14:53:46 -0400
commit7adf12b87f45a77d364464018fb8e9e1ac875152 (patch)
tree9e2f96ba1f7b1b768143d22ad3b77d248aae77c2 /drivers/block/xen-blkback
parent02201e3f1b46aed7c6348f406b7b40de80ba6de3 (diff)
parent6684fa1cdb1ebe804e9707f389255d461b2e95b0 (diff)
Merge tag 'for-linus-4.2-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen updates from David Vrabel: "Xen features and cleanups for 4.2-rc0: - add "make xenconfig" to assist in generating configs for Xen guests - preparatory cleanups necessary for supporting 64 KiB pages in ARM guests - automatically use hvc0 as the default console in ARM guests" * tag 'for-linus-4.2-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: block/xen-blkback: s/nr_pages/nr_segs/ block/xen-blkfront: Remove invalid comment block/xen-blkfront: Remove unused macro MAXIMUM_OUTSTANDING_BLOCK_REQS arm/xen: Drop duplicate define mfn_to_virt xen/grant-table: Remove unused macro SPP xen/xenbus: client: Fix call of virt_to_mfn in xenbus_grant_ring xen: Include xen/page.h rather than asm/xen/page.h kconfig: add xenconfig defconfig helper kconfig: clarify kvmconfig is for kvm xen/pcifront: Remove usage of struct timeval xen/tmem: use BUILD_BUG_ON() in favor of BUG_ON() hvc_xen: avoid uninitialized variable warning xenbus: avoid uninitialized variable warning xen/arm: allow console=hvc0 to be omitted for guests arm,arm64/xen: move Xen initialization earlier arm/xen: Correctly check if the event channel interrupt is present
Diffstat (limited to 'drivers/block/xen-blkback')
-rw-r--r--drivers/block/xen-blkback/blkback.c10
-rw-r--r--drivers/block/xen-blkback/common.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index 2126842fb6e8..ced96777b677 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -736,7 +736,7 @@ static void xen_blkbk_unmap_and_respond(struct pending_req *req)
736 struct grant_page **pages = req->segments; 736 struct grant_page **pages = req->segments;
737 unsigned int invcount; 737 unsigned int invcount;
738 738
739 invcount = xen_blkbk_unmap_prepare(blkif, pages, req->nr_pages, 739 invcount = xen_blkbk_unmap_prepare(blkif, pages, req->nr_segs,
740 req->unmap, req->unmap_pages); 740 req->unmap, req->unmap_pages);
741 741
742 work->data = req; 742 work->data = req;
@@ -922,7 +922,7 @@ static int xen_blkbk_map_seg(struct pending_req *pending_req)
922 int rc; 922 int rc;
923 923
924 rc = xen_blkbk_map(pending_req->blkif, pending_req->segments, 924 rc = xen_blkbk_map(pending_req->blkif, pending_req->segments,
925 pending_req->nr_pages, 925 pending_req->nr_segs,
926 (pending_req->operation != BLKIF_OP_READ)); 926 (pending_req->operation != BLKIF_OP_READ));
927 927
928 return rc; 928 return rc;
@@ -938,7 +938,7 @@ static int xen_blkbk_parse_indirect(struct blkif_request *req,
938 int indirect_grefs, rc, n, nseg, i; 938 int indirect_grefs, rc, n, nseg, i;
939 struct blkif_request_segment *segments = NULL; 939 struct blkif_request_segment *segments = NULL;
940 940
941 nseg = pending_req->nr_pages; 941 nseg = pending_req->nr_segs;
942 indirect_grefs = INDIRECT_PAGES(nseg); 942 indirect_grefs = INDIRECT_PAGES(nseg);
943 BUG_ON(indirect_grefs > BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST); 943 BUG_ON(indirect_grefs > BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST);
944 944
@@ -1258,7 +1258,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
1258 pending_req->id = req->u.rw.id; 1258 pending_req->id = req->u.rw.id;
1259 pending_req->operation = req_operation; 1259 pending_req->operation = req_operation;
1260 pending_req->status = BLKIF_RSP_OKAY; 1260 pending_req->status = BLKIF_RSP_OKAY;
1261 pending_req->nr_pages = nseg; 1261 pending_req->nr_segs = nseg;
1262 1262
1263 if (req->operation != BLKIF_OP_INDIRECT) { 1263 if (req->operation != BLKIF_OP_INDIRECT) {
1264 preq.dev = req->u.rw.handle; 1264 preq.dev = req->u.rw.handle;
@@ -1379,7 +1379,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
1379 1379
1380 fail_flush: 1380 fail_flush:
1381 xen_blkbk_unmap(blkif, pending_req->segments, 1381 xen_blkbk_unmap(blkif, pending_req->segments,
1382 pending_req->nr_pages); 1382 pending_req->nr_segs);
1383 fail_response: 1383 fail_response:
1384 /* Haven't submitted any bio's yet. */ 1384 /* Haven't submitted any bio's yet. */
1385 make_response(blkif, req->u.rw.id, req_operation, BLKIF_RSP_ERROR); 1385 make_response(blkif, req->u.rw.id, req_operation, BLKIF_RSP_ERROR);
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index 8ccc49d01c8e..45a044a53d1e 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -345,7 +345,7 @@ struct grant_page {
345struct pending_req { 345struct pending_req {
346 struct xen_blkif *blkif; 346 struct xen_blkif *blkif;
347 u64 id; 347 u64 id;
348 int nr_pages; 348 int nr_segs;
349 atomic_t pendcnt; 349 atomic_t pendcnt;
350 unsigned short operation; 350 unsigned short operation;
351 int status; 351 int status;