1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Invert the polarity of two tests in the recovery code that could cause

the driver to issue a bus reset more quickly than intended.  We want to
*wait* if we find another SCB that could be the cause of this timeout,
not proceed to a bus reset.

Noticed by: kan
This commit is contained in:
Justin T. Gibbs 2004-08-18 16:35:52 +00:00
parent aed921b969
commit 0d0c8be691
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133966

View File

@ -9391,7 +9391,7 @@ ahd_recover_commands(struct ahd_softc *ahd)
* untimed-out command is outstanding. * untimed-out command is outstanding.
*/ */
if (ahd_other_scb_timeout(ahd, scb, if (ahd_other_scb_timeout(ahd, scb,
active_scb) != 0) active_scb) == 0)
goto bus_reset; goto bus_reset;
continue; continue;
} }
@ -9430,7 +9430,7 @@ ahd_recover_commands(struct ahd_softc *ahd)
* some other command. Reset the timer * some other command. Reset the timer
* and go on. * and go on.
*/ */
if (ahd_other_scb_timeout(ahd, scb, NULL) != 0) if (ahd_other_scb_timeout(ahd, scb, NULL) == 0)
goto bus_reset; goto bus_reset;
} else { } else {
/* /*