]> git.neil.brown.name Git - history.git/commit
Fix IDE "PIO WRITE wait for ready" test under extreme interrupt load.
authorLinus Torvalds <torvalds@home.osdl.org>
Sat, 3 Jan 2004 10:25:13 +0000 (02:25 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 3 Jan 2004 10:25:13 +0000 (02:25 -0800)
commit11f963511c5a94c5969fdbb5e6f4da2190592d6f
tree35de2996b7f8bb444ad6ccce84dba7dbde51f24f
parenta5c43a751629855dde22a3b7b44f55546b4fcb01
Fix IDE "PIO WRITE wait for ready" test under extreme interrupt load.

From Daniel Tram Lux: under extreme irq load on an underpowered CPU,
the timeout loop may not make any progress, and decide that a timeout
occurred before it has actually tested the status register.

The minimal fix for now is to just have a final test _after_ the timeout
to remove the problem. The real fix would likely be to not have irqs
enabled between reading the status and the timeout.
drivers/ide/ide-iops.c