Fix case where sequence state wasn't updated properly, resulting in

`disk_unbusy' panic.
This commit is contained in:
pk 1996-05-27 00:10:40 +00:00
parent ec587073d7
commit 4fa564e10d

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.33 1996/04/29 12:07:32 pk Exp $ */
/* $NetBSD: fd.c,v 1.34 1996/05/27 00:10:40 pk Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles Hannum.
@ -1349,11 +1349,12 @@ loop:
printf("fdc: %d -> threshold\n", thr);
#endif
fdconf(fdc);
fdc->sc_state = DOIO;
fdc->sc_overruns = 0;
}
if (++fdc->sc_overruns < 3)
if (++fdc->sc_overruns < 3) {
fdc->sc_state = DOIO;
goto loop;
}
}
fdcretry(fdc);
goto loop;