virtio: Fix GFP flags passed from the virtio balloon driver
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Thu, 22 Apr 2010 02:52:34 +0000 (11:52 +0930)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Apr 2010 14:34:05 +0000 (07:34 -0700)
commit61fb06cc8e68906fb29d67bd5b6c2d50a95fc9e5
tree0019a4794e8060f9c71a4cf6d6a712e204f3e5a7
parentb7b6cf005b59ff5a4dba10338954c3dcfc75ef7b
virtio: Fix GFP flags passed from the virtio balloon driver

The virtio balloon driver can dig into the reservation pools of the OS
to satisfy a balloon request.  This is not advisable and other balloon
drivers (drivers/xen/balloon.c) avoid this as well.

The patch also adds changes to avoid printing a warning if allocation
fails, since we retry after sometime anyway.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: kvm <kvm@vger.kernel.org>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/virtio/virtio_balloon.c