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:15:41 +0000 (15:15 -0400)
commitbdfbec3be201afa519e98b49984997dd2d4a509f
tree9b260fb281a9c02e8140ceb5c803bba03403c42e
parentf4c3b805f663386b2a6c873ee836f987b278bcc1
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