diff options
author | Olaf Hering <olaf@aepfle.de> | 2020-10-08 09:12:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-18 19:18:41 +0100 |
commit | 36f3a81b75b1cff6f886aeaaa69f93bcb974fa3e (patch) | |
tree | 787cc88370074df264a757237d2f85de5cd9b59b | |
parent | 9d9c830b50e371eae7147764235baa8b5fbcd17b (diff) | |
download | linux-stable-36f3a81b75b1cff6f886aeaaa69f93bcb974fa3e.tar.gz linux-stable-36f3a81b75b1cff6f886aeaaa69f93bcb974fa3e.tar.bz2 linux-stable-36f3a81b75b1cff6f886aeaaa69f93bcb974fa3e.zip |
hv_balloon: disable warning when floor reached
[ Upstream commit 2c3bd2a5c86fe744e8377733c5e511a5ca1e14f5 ]
It is not an error if the host requests to balloon down, but the VM
refuses to do so. Without this change a warning is logged in dmesg
every five minutes.
Fixes: b3bb97b8a49f3 ("Drivers: hv: balloon: Add logging for dynamic memory operations")
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20201008071216.16554-1-olaf@aepfle.de
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/hv/hv_balloon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 9ca0706a9d40..e5fc719a34e7 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1275,7 +1275,7 @@ static void balloon_up(struct work_struct *dummy) /* Refuse to balloon below the floor. */ if (avail_pages < num_pages || avail_pages - num_pages < floor) { - pr_warn("Balloon request will be partially fulfilled. %s\n", + pr_info("Balloon request will be partially fulfilled. %s\n", avail_pages < num_pages ? "Not enough memory." : "Balloon floor reached."); |