Skip to contentSkip to conversation

rtsx_usb_ms-use-schedule_timeout_idle-in-polling-loop-v2.patch removed from -mm tree

merged [email protected] 1 participant 1 message May 27, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: rtsx_usb_ms: use schedule_timeout_idle() in polling loop
has been removed from the -mm tree. Its filename was
rtsx_usb_ms-use-schedule_timeout_idle-in-polling-loop-v2.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Oleksandr Natalenko <[email protected]>
Subject: rtsx_usb_ms: use schedule_timeout_idle() in polling loop

First version of this patch has already been posted to LKML by Ben Hutchings ~6 months ago, but no further action were performed.

Ben's original message:

: rtsx_usb_ms creates a task that mostly sleeps, but tasks in : uninterruptible sleep still contribute to the load average (for : bug-compatibility with Unix). A load average of ~1 on a system that : should be idle is somewhat alarming.
:
: Change the sleep to be interruptible, but still ignore signals.

References: https://bugs.debian.org/765717

---

 drivers/memstick/host/rtsx_usb_ms.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/memstick/host/rtsx_usb_ms.c renamed from drivers/memstick/host/rtsx_usb_ms.c~rtsx_usb_ms-use-schedule_timeout_idle-in-polling-loop-v2 +1 -1
diff -puN drivers/memstick/host/rtsx_usb_ms.c~rtsx_usb_ms-use-schedule_timeout_idle-in-polling-loop-v2 drivers/memstick/host/rtsx_usb_ms.c
@@ -706,7 +706,7 @@ poll_again:
 		if (host->eject)
 			break;
 
-		msleep(1000);
+		schedule_timeout_idle(HZ);
 	}
 
 	complete(&host->detect_ms_exit);

_

Patches currently in -mm which might be from [email protected] are