[rfc][patch]: fix handler race in HDIO_DRIVE_RESET path for 2.5.67-ac1

From: rain.wang (rain.wang@mic.com.tw)
Date: Wed Apr 09 2003 - 22:37:14 EST


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 !!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:20 EST