diff options
author | Oleksandr Natalenko <[email protected]> | 2016-05-23 16:24:28 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-05-23 17:04:14 -0700 |
commit | a831979f855f1a19db1b3b194c5fab5e04ad26ff (patch) | |
tree | 8406be94a361993530693b2314ebde6b354c39fe | |
parent | a0c20deae992527ba90df9a6f87d396b7cee3922 (diff) |
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
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Oleksandr Natalenko <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Ben Hutchings <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: Roger Tseng <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | drivers/memstick/host/rtsx_usb_ms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memstick/host/rtsx_usb_ms.c b/drivers/memstick/host/rtsx_usb_ms.c index 1105db2355d2..d34bc3530385 100644 --- a/drivers/memstick/host/rtsx_usb_ms.c +++ b/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); |