summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkback/common.h
diff options
context:
space:
mode:
authorBob Liu <bob.liu@oracle.com>2015-06-03 08:40:01 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2015-06-06 04:14:05 +0300
commit69b91ede5cab843dcf345c28bd1f4b5a99dacd9b (patch)
tree542bccc08bb0281d7a2474dc48021c5b4917e038 /drivers/block/xen-blkback/common.h
parenta5768aa887fb636f0cc4c83a2f1242506aaf50f6 (diff)
downloadlinux-69b91ede5cab843dcf345c28bd1f4b5a99dacd9b.tar.xz
drivers: xen-blkback: delay pending_req allocation to connect_ring
This is a pre-patch for multi-page ring feature. In connect_ring, we can know exactly how many pages are used for the shared ring, delay pending_req allocation here so that we won't waste too much memory. Signed-off-by: Bob Liu <bob.liu@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback/common.h')
-rw-r--r--drivers/block/xen-blkback/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h
index f620b5d3f77c..043f13b7b7b0 100644
--- a/drivers/block/xen-blkback/common.h
+++ b/drivers/block/xen-blkback/common.h
@@ -248,7 +248,7 @@ struct backend_info;
#define PERSISTENT_GNT_WAS_ACTIVE 1
/* Number of requests that we can fit in a ring */
-#define XEN_BLKIF_REQS 32
+#define XEN_BLKIF_REQS_PER_PAGE 32
struct persistent_gnt {
struct page *page;