summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3622eda)
SCCS-vsn: sys/vax/vax/machdep.c 6.2
-/* machdep.c 6.1 83/08/20 */
+/* machdep.c 6.2 83/10/02 */
#include "../machine/reg.h"
#include "../machine/pte.h"
#include "../machine/reg.h"
#include "../machine/pte.h"
update();
printf("syncing disks... ");
#ifdef notdef
update();
printf("syncing disks... ");
#ifdef notdef
+ DELAY(10000000);
+#else
{ register struct buf *bp;
int iter, nbusy;
{ 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; )
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);
}
}
nbusy++;
if (nbusy == 0)
break;
printf("%d ", nbusy);
}
}
-#else
- DELAY(10000000);
#endif
printf("done\n");
}
#endif
printf("done\n");
}