summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@citrix.com>2013-03-18 17:49:35 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-03-19 12:50:06 -0400
commit9c1e050caeb4d1250f8ceef1180a8b3d0db6c624 (patch)
treeb3fb576a47d4a86005de189da69fde0d8a22072b /drivers/block/loop.c
parentffb1dabd1eb10c76a1e7af62f75a1aaa8d590b5a (diff)
downloadtalos-op-linux-9c1e050caeb4d1250f8ceef1180a8b3d0db6c624.tar.gz
talos-op-linux-9c1e050caeb4d1250f8ceef1180a8b3d0db6c624.zip
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é <roger.pau@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: xen-devel@lists.xen.org Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/loop.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud