public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: [2.4.18+] IDE Race Condition
@ 2003-01-27 17:11 Ross Biro
  2003-01-27 17:34 ` Ross Biro
  2003-01-30 17:34 ` Alan Cox
  0 siblings, 2 replies; 10+ messages in thread
From: Ross Biro @ 2003-01-27 17:11 UTC (permalink / raw)
  To: linux-kernel


There is at least one more IDE race condition in 2.4.18 and 2.4.21-pre3. 
 Basically the interrupt for the controller being serviced is left on 
while setting up the next command.  I'm not sure how much trouble it can 
cause but it does lead to some interesting stack traces.

The condition
if (masked_irq && hwif->irq != masked_irq)
in ide_do_request should be replaced with
if (!masked_irq || hwif->irq != masked_irq)
in two places.

This doesn't totally eliminate the race conditions, but it does minimize 
them some more.  I can still see a race in 2.4.18.  I'll say more about 
it once I've tracked it down.

    Ross



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-01-30 16:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-27 17:11 BUG: [2.4.18+] IDE Race Condition Ross Biro
2003-01-27 17:34 ` Ross Biro
2003-01-28  2:46   ` Andre Hedrick
2003-01-28 16:48     ` Ross Biro
2003-01-28 17:28       ` Andre Hedrick
2003-01-28 17:42         ` Ross Biro
2003-01-28 18:01           ` Andre Hedrick
2003-01-30 17:34 ` Alan Cox
2003-01-30 16:58   ` Ross Biro
2003-01-30 18:01     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox