Skip to contentSkip to conversation

prism54/islpci_dev: replace schedule_timeout() with msleep()

PATCH Margit Schubert-While 2 participants 2 messages Sep 2, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

On Thu, 02 Sep 2004, Nishanth scribeth:

Quoted 2 lines

Keep in mind that msleep_interruptible() is also
(hopefully) being pushed to the kernel soon

I think you need this for your current patch set ;-) eg. In e100, where you replace an interruptible timeout:

Review

Quoted 1 line
(quoted diff) +0 -0
@@ -2020,8 +2016,7 @@

I don't think that's correct.

Margit

#1 lore raw
Quoted 9 lines · Margit Schubert-While

On Thu, 02 Sep 2004, Nishanth scribeth:

Quoted 2 lines

Keep in mind that msleep_interruptible() is also
(hopefully) being pushed to the kernel soon

I think you need this for your current patch set ;-) eg. In e100, where you replace an interruptible timeout:

Review

Quoted 1 line
(quoted diff) +0 -0
@@ -2020,8 +2016,7 @@

I don't think that's correct.

The reasoning for me behind changing some of the TASK_INTERRUPTIBLE'd schedule_timeout()s to msleep()s was that LDD somewhat incorrectly advised device driver authors to use an INTERRUPTIBLE timeout for longer delays, when, in fact, they should probably use an UNINTERRUPTIBLE one. Only if signals are explicitly expected to occur is INTERRUPTIBLE necessary (in general). [By long delays, I mean those measurable in msecs]

I am not an expert on the E100, so perhaps this was an error on my part. But this is also why I have a header on my patch submission regarding exactly this issue.

If someone could verify (none of the maintainers I sent the original patch to did not reply with any problems for this patch) that there is or is not an issue, I'd appreciate it.

-Nish