提交 5dba4c56 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

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: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0b336cea
...@@ -1171,7 +1171,8 @@ static int dm_thread_func(void *dm_dev) ...@@ -1171,7 +1171,8 @@ static int dm_thread_func(void *dm_dev)
int t; int t;
while (!kthread_should_stop()) { 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 * The host expects us to post information on the memory
* pressure every second. * pressure every second.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册