]> git.baikalelectronics.ru Git - kernel.git/commit
xen: release lock occasionally during ballooning
authorJuergen Gross <jgross@suse.com>
Mon, 20 Jul 2015 11:49:39 +0000 (13:49 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 20 Jul 2015 12:37:05 +0000 (13:37 +0100)
commit0bf46ee00acdddac7bc561f342e19cd50163accd
tree6cd72c81da19d07724be549366b750cf1ceca829
parentaf1b46c483079c14f3476ec267ed37d89db10f1e
xen: release lock occasionally during ballooning

When dom0 is being ballooned balloon_process() will hold the balloon
mutex until it is finished. This will block e.g. creation of new
domains as the device backends for the new domain need some
autoballooned pages for the ring buffers.

Avoid this by releasing the balloon mutex from time to time during
ballooning. Adjust the comment above balloon_process() regarding
multiple instances of balloon_process().

Instead of open coding it, just use cond_resched().

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/balloon.c