]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/misc/vmw_balloon.c
vmw_balloon: remove sleeping allocations
authorNadav Amit <namit@vmware.com>
Thu, 20 Sep 2018 17:30:11 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:11:42 +0000 (20:11 +0200)
commit622074a9f6f7ab07547c71eb998404a0e5c931e1
tree17648ae6d0af4a7ee467cfd942b861978021029d
parent6c94875799eaf99bfdbb0efce21d75e1c56e96d5
vmw_balloon: remove sleeping allocations

Splitting the allocations between sleeping and non-sleeping made some
sort of sense as long as rate-limiting was enabled. Now that it is
removed, we need to decide - either we want sleeping allocations or not.

Since no other Linux balloon driver (hv, Xen, virtio) uses sleeping
allocations, use the same approach.

We do distinguish, however, between 2MB allocations and 4kB allocations
and prevent reclamation on 2MB. In both cases, we avoid using emergency
low-memory pools, as it may cause undesired effects.

Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_balloon.c