Skip to contentSkip to conversation

DISCUSSION Joilnen Leite 2 participants 2 messages Feb 19, 2004 libata

lore
Share & tools
lore
#0 lore raw

excuse me friends shcedule_timeout(1) is not a problem for spin_lock_irqsave ?

drivers/scsi/ide-scsi.c:897

spin_lock_irqsave(&ide_lock, flags);

while (HWGROUP(drive)->handler) {
       HWGROUP(drive)->handler = NULL;
       schedule_timeout(1);
}

pub 1024D/5139533E Joilnen Batista Leite
F565 BD0B 1A39 390D 827E 03E5 0CD4 0F20 5139 533E

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

#1 lore raw

Re: your mail

Quoted 5 lines · Joilnen Leite

excuse me friends shcedule_timeout(1) is not a problem for spin_lock_irqsave ?

drivers/scsi/ide-scsi.c:897

Quoted 8 lines

spin_lock_irqsave(&ide_lock, flags);

while (HWGROUP(drive)->handler) {
       HWGROUP(drive)->handler = NULL;
       schedule_timeout(1);
}

pub 1024D/5139533E Joilnen Batista Leite
F565 BD0B 1A39 390D 827E 03E5 0CD4 0F20 5139 533E

What kernel version? It is very bad. You can't sleep with a spin-lock being held!

Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an Intel Pentium III machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.