]> git.baikalelectronics.ru Git - kernel.git/commit
xen: avoid allocation causing potential swap activity on the resume path
authorIan Campbell <ian.campbell@citrix.com>
Tue, 25 May 2010 09:45:35 +0000 (10:45 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 3 Jun 2010 08:34:45 +0000 (09:34 +0100)
commit711aa08a73b5d6a1f3a9556bed8275c5f2c98724
treef0f7f26534bca491dc9570f2243df817e982feb4
parent47750f9f1472f607cf032000063bbb6dce15dfe3
xen: avoid allocation causing potential swap activity on the resume path

Since the device we are resuming could be the device containing the
swap device we should ensure that the allocation cannot cause
IO.

On resume, this path is triggered when the running system tries to
continue using its devices.  If it cannot then the resume will fail;
to try to avoid this we let it dip into the emergency pools.

The majority of these changes were made when linux-2.6.18-xen.hg
changeset e8b49cfbdac0 was ported upstream in
ec6d608f463dbe5699a8638ddafe8438d1bd8957 but somehow this hunk was
dropped.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Stable Kernel <stable@kernel.org> # .32.x
drivers/xen/xenbus/xenbus_xs.c