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>
This commit is contained in:
K. Y. Srinivasan 2014-02-13 16:24:33 -08:00 коммит произвёл Greg Kroah-Hartman
Родитель 0b336cea56
Коммит 5dba4c56df
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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.