Re: PATCH: straighten out the IDE layer locking and add hotplug
From: Alan Cox <hidden>
Date: 2004-08-17 17:13:46
From: Alan Cox <hidden>
Date: 2004-08-17 17:13:46
On Maw, 2004-08-17 at 14:12, Bartlomiej Zolnierkiewicz wrote:
quoted
+ if (g->irq == hwif->irq) + ++irq_count; + g = g->next; + } while (g != hwgroup->hwif); + } + spin_unlock_irq(&ide_lock);new race(s) here because of not holding ide_cfg_sem anylonger, see init_irq() in ide-probe.c and ide_cfg_sem comments in ide.h
Double checked. No race. ide_cfg_sem is held over the whole ide_unregister path.