Messages in this thread Patch in this message | | | Date | Thu, 10 Apr 2003 11:37:14 +0800 | From | "rain.wang" <> | Subject | [rfc][patch]: fix handler race in HDIO_DRIVE_RESET path for 2.5.67-ac1 |
| |
Hi, I found there's another 50 msec wait needed after the first reset poll handler return to avoid the handler race. but I can't find out reason why.
regards rain.w --- /usr/src/linux-2.5.67-ac1/drivers/ide/ide.c Wed Apr 9 11:31:40 2003 +++ ide.c Wed Apr 9 13:31:18 2003 @@ -1608,6 +1608,10 @@ HWGROUP(drive)->busy = 1; spin_unlock_irqrestore(&ide_lock, flags); (void) ide_do_reset(drive); + + /* wait for another 50ms */ + mdelay(50); + if (drive->suspend_reset) { /* * APM WAKE UP todo !! | |