xen-blkback: allocate list of pending reqs in small chunks
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 2 May 2013 08:21:17 +0000 (10:21 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 7 May 2013 13:42:17 +0000 (09:42 -0400)
commitbb642e8315fd573795e8b6fa9b9629064d73add1
tree47ee834fb5a80a77129cb8bf0607ce4db9c04a55
parent402b27f9f2c22309d5bb285628765bc27b82fcf5
xen-blkback: allocate list of pending reqs in small chunks

Allocate pending requests in smaller chunks instead of allocating them
all at the same time.

This change also removes the global array of pending_reqs, it is no
longer necessay.

Variables related to the grant mapping have been grouped into a struct
called "grant_page", this allows to allocate them in smaller chunks,
and also improves memory locality.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c