提交 c548f395 编写于 作者: A Alex Ng 提交者: Greg Kroah-Hartman

Drivers: hv: balloon: Initialize last_post_time on startup

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: NAlex Ng <alexng@messages.microsoft.com>
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7b6e54b5
...@@ -1655,6 +1655,7 @@ static int balloon_probe(struct hv_device *dev, ...@@ -1655,6 +1655,7 @@ static int balloon_probe(struct hv_device *dev,
} }
dm_device.state = DM_INITIALIZED; dm_device.state = DM_INITIALIZED;
last_post_time = jiffies;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册