History

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.

K. Y. Srinivasan committed 12 years ago

Commit 5dba4c51 parent 0b336ce1 file · +2 −1Browse files

Unified · Split

drivers/hv/hv_balloon.c+2−1
@@ -1171,7 +1171,8 @@ static int dm_thread_func(void *dm_dev) · 1170 unmodified lines
11711171 int t;
11721172
11731173 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);
11751176 /*
11761177 * The host expects us to post information on the memory
11771178 * pressure every second.