]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Drivers: hv: Ballon: Make pressure posting thread sleep interruptibly
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 14 Feb 2014 00:24:33 +0000 (16:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:08:38 +0000 (12:08 -0800)
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>
drivers/hv/hv_balloon.c

index 7e17a5495e029cc02b127f4c0cb997b43aa09dfe..7e6d78dc9437def19b24ac588ed6171a469aed51 100644 (file)
@@ -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.