drivers: xen-blkback: delay pending_req allocation to connect_ring
authorBob Liu <bob.liu@oracle.com>
Wed, 3 Jun 2015 05:40:01 +0000 (13:40 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 6 Jun 2015 01:14:05 +0000 (21:14 -0400)
commit69b91ede5cab843dcf345c28bd1f4b5a99dacd9b
tree542bccc08bb0281d7a2474dc48021c5b4917e038
parenta5768aa887fb636f0cc4c83a2f1242506aaf50f6
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>
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c