Skip to content

Commit

Permalink
Drivers: hv: Ballon: Make pressure posting thread sleep interruptibly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Feb 15, 2014
1 parent 0b336ce commit 5dba4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hv/hv_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,8 @@ static int dm_thread_func(void *dm_dev)
int t;

while (!kthread_should_stop()) {
t = wait_for_completion_timeout(&dm_device.config_event, 1*HZ);
t = wait_for_completion_interruptible_timeout(
&dm_device.config_event, 1*HZ);
/*
* The host expects us to post information on the memory
* pressure every second.
Expand Down

0 comments on commit 5dba4c5

Please sign in to comment.