Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1704954
| From | kys@exchange.microsoft.com |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/5] Drivers: hv: balloon: Initialize last_post_time on startup |
| Date | 2017-08-06 22:20 +0200 |
| Message-ID | <ubAbL-6NP-1@gated-at.bofh.it> (permalink) |
| References | <ubAbL-6NP-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Alex Ng <alexng@messages.microsoft.com>
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>
---
drivers/hv/hv_balloon.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index 7cec482..db0e665 100644
--- 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;
--
1.7.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 4/5] Drivers: hv: balloon: Initialize last_post_time on startup kys@exchange.microsoft.com - 2017-08-06 22:20 +0200
csiph-web