From cd0e9146c81b11bcdbd2f738391a11c984329b8e Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sun, 2 Oct 1983 19:53:53 -0800 Subject: [PATCH] boot ignores INVAL buffers when waiting for sync SCCS-vsn: sys/vax/vax/machdep.c 6.2 --- usr/src/sys/vax/vax/machdep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr/src/sys/vax/vax/machdep.c b/usr/src/sys/vax/vax/machdep.c index 311edf71e0..ddc265ff8a 100644 --- a/usr/src/sys/vax/vax/machdep.c +++ b/usr/src/sys/vax/vax/machdep.c @@ -1,4 +1,4 @@ -/* machdep.c 6.1 83/08/20 */ +/* machdep.c 6.2 83/10/02 */ #include "../machine/reg.h" #include "../machine/pte.h" @@ -598,21 +598,21 @@ boot(paniced, arghowto) update(); printf("syncing disks... "); #ifdef notdef + DELAY(10000000); +#else { register struct buf *bp; int iter, nbusy; - for (iter = 0; iter < 10; iter++) { + for (iter = 0; iter < 20; iter++) { nbusy = 0; for (bp = &buf[nbuf]; --bp >= buf; ) - if (bp->b_flags & B_BUSY) + if ((bp->b_flags & (B_BUSY|B_INVAL)) == B_BUSY) nbusy++; if (nbusy == 0) break; printf("%d ", nbusy); } } -#else - DELAY(10000000); #endif printf("done\n"); } -- 2.20.1