summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2011-10-20 21:24:30 +0200
committerJens Axboe <axboe@kernel.dk>2011-10-20 21:24:30 +0200
commit3bcfeaf93f44112053e1c36aa681d9efc1185ddc (patch)
tree15206964bf4eb4892de4c8850c799def913971db /block
parentc9a929dde3913780b5c416f4bb9d9ed804f509ce (diff)
downloadlinux-3bcfeaf93f44112053e1c36aa681d9efc1185ddc.tar.bz2
block: initialize the bounce pool if high memory may be added later
init_emergency_pool() does not create the page pool for bouncing block requests if the current count of high pages is zero. If high memory may be added later (either via memory hotplug or a balloon driver in a virtualized system) then a oops occurs if a request with a high page need bouncing because the pool does not exist. So, always create the pool if memory hotplug is enabled and change the test so it's valid even if all high pages are currently in the balloon (the balloon drivers adjust totalhigh_pages but not max_pfn). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions