diff options
author | Roger Pau Monne <roger.pau@citrix.com> | 2013-03-18 17:49:35 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-03-19 12:50:06 -0400 |
commit | 9c1e050caeb4d1250f8ceef1180a8b3d0db6c624 (patch) | |
tree | b3fb576a47d4a86005de189da69fde0d8a22072b /drivers/block/loop.c | |
parent | ffb1dabd1eb10c76a1e7af62f75a1aaa8d590b5a (diff) | |
download | talos-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