]> asedeno.scripts.mit.edu Git - linux.git/commit
Drivers: hv: balloon: Initialize last_post_time on startup
authorAlex Ng <alexng@messages.microsoft.com>
Sun, 6 Aug 2017 20:12:55 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Aug 2017 16:14:43 +0000 (09:14 -0700)
commitc548f3957efa57b6f1a1f4c90013232f6f488682
tree91b8429b9c286d807c07910f6c0ee31b4dd2de52
parent7b6e54b524b66b60e4cf49e8aa7c43045ebb987d
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: Alex Ng <alexng@messages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c