Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2017-10-20 12:20:33 +0200
committerOlaf Hering <ohering@suse.de>2017-10-20 12:23:28 +0200
commit223165f82e86239eed837d46e29d2e002ecf2de4 (patch)
treec192a3cf6a4d2e749cdbdce6ed91c838cc89aabd
parentd3a717f9b19e44afa048af44397ef35d0fce46b7 (diff)
Drivers: hv: balloon: Initialize last_post_time on startup
-rw-r--r--patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch36
-rw-r--r--series.conf1
2 files changed, 37 insertions, 0 deletions
diff --git a/patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch b/patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch
new file mode 100644
index 0000000000..44e1776bcd
--- /dev/null
+++ b/patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch
@@ -0,0 +1,36 @@
+From: Alex Ng <alexng@messages.microsoft.com>
+Date: Sun, 6 Aug 2017 13:12:55 -0700
+Patch-mainline: v4.14-rc1
+Subject: Drivers: hv: balloon: Initialize last_post_time on startup
+Git-commit: c548f3957efa57b6f1a1f4c90013232f6f488682
+References: fate#323887
+
+When left uninitialized, this sometimes fails the following check in
+post_status():
+
+ if (!time_after(now, (last_post_time + HZ))) {
+ return;
+ }
+
+This causes unnecessary delays in reporting memory pressure to host after
+booting up.
+
+Signed-off-by: Alex Ng <alexng@messages.microsoft.com>
+Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Acked-by: Olaf Hering <ohering@suse.de>
+---
+ drivers/hv/hv_balloon.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
+--- a/drivers/hv/hv_balloon.c
++++ b/drivers/hv/hv_balloon.c
+@@ -1655,6 +1655,7 @@ static int balloon_probe(struct hv_device *dev,
+ }
+
+ dm_device.state = DM_INITIALIZED;
++ last_post_time = jiffies;
+
+ return 0;
+
diff --git a/series.conf b/series.conf
index 36d284a027..8716d94ea1 100644
--- a/series.conf
+++ b/series.conf
@@ -1688,6 +1688,7 @@
patches.suse/msft-hv-1435-Tools-hv-vss-Skip-freezing-filesystems-backed-by-loo.patch
patches.suse/msft-hv-1436-Drivers-hv-balloon-Correctly-update-onlined-page-cou.patch
patches.suse/msft-hv-1437-Drivers-hv-balloon-Show-the-max-dynamic-memory-assig.patch
+ patches.suse/msft-hv-1438-Drivers-hv-balloon-Initialize-last_post_time-on-star.patch
patches.suse/suse-hv-guest-os-id.patch
patches.suse/suse-hv-kvp_on_msg.dbg.patch