diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2014-02-13 19:24:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-15 15:08:38 -0500 |
commit | 5dba4c56dfa660a85dc8e897990948cdec3734bf (patch) | |
tree | 550921e5e327327eed124949ac577ffd6b8f58a2 /drivers/hv/hv_balloon.c | |
parent | 0b336cea56ccd9949dc9bd6f24bd3bb9d212ffad (diff) |
Drivers: hv: Ballon: Make pressure posting thread sleep interruptibly
The non-interruptible sleep of the memory pressure posting thread
results in higher reported load average. Make this sleep interruptible.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv_balloon.c')
-rw-r--r-- | drivers/hv/hv_balloon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 7e17a5495e02..7e6d78dc9437 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c | |||
@@ -1171,7 +1171,8 @@ static int dm_thread_func(void *dm_dev) | |||
1171 | int t; | 1171 | int t; |
1172 | 1172 | ||
1173 | while (!kthread_should_stop()) { | 1173 | while (!kthread_should_stop()) { |
1174 | t = wait_for_completion_timeout(&dm_device.config_event, 1*HZ); | 1174 | t = wait_for_completion_interruptible_timeout( |
1175 | &dm_device.config_event, 1*HZ); | ||
1175 | /* | 1176 | /* |
1176 | * The host expects us to post information on the memory | 1177 | * The host expects us to post information on the memory |
1177 | * pressure every second. | 1178 | * pressure every second. |