Drivers: hv: balloon: Ensure pressure reports are posted regularly
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 23 Apr 2014 20:53:39 +0000 (13:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:12:40 +0000 (15:12 -0400)
commit72d1e4f6c1530d2c9c8e0d82b2c2e2ab9bf7034a
tree9032b6ce49adebf8c1b218723f5c3a43893621a2
parent4421a014e97c6669db6eb8600ce83d29e5484842
Drivers: hv: balloon: Ensure pressure reports are posted regularly

commit ae339336dc950b9b05e7ccd3565dd3e8781c06d9 upstream.

The current code posts periodic memory pressure status from a dedicated thread.
Under some conditions, especially when we are releasing a lot of memory into
the guest, we may not send timely pressure reports back to the host. Fix this
issue by reporting pressure in all contexts that can be active in this driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c