From: Roger Pau Monne Date: Mon, 18 Mar 2013 16:49:35 +0000 (+0100) Subject: xen-blkfront: pre-allocate pages for requests X-Git-Tag: v3.9-rc5~3^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c1e050caeb4d1250f8ceef1180a8b3d0db6c624;p=pandora-kernel.git xen-blkfront: pre-allocate pages for requests This prevents us from having to call alloc_page while we are preparing the request. Since blkfront was calling alloc_page with a spinlock held we used GFP_ATOMIC, which can fail if we are requesting a lot of pages since it is using the emergency memory pools. Allocating all the pages at init prevents us from having to call alloc_page, thus preventing possible failures. Signed-off-by: Roger Pau Monné Cc: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xen.org Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed