Skip to contentSkip to conversation

Drivers: hv: Ballon: Make pressure posting thread sleep interruptibly

PATCH New K. Y. Srinivasan 1 participant 1 message Feb 13, 2014 Hyper-V/Azure core and drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/hv/hv_balloon.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/hv/hv_balloon.c +2 -1
index 7e17a54..7e6d78d 100644
@@ -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.
Signature · 1 line
1.7.4.1