Better criteria for skipping disk reading BIO_READ work packets.

This commit is contained in:
phk 2003-04-28 06:15:39 +00:00
parent 482e860dda
commit 5299f69145

View File

@ -560,7 +560,8 @@ g_bde_worker(void *arg)
("Illegal sector state (JUNK ?)"));
}
if (wp->bp->bio_cmd == BIO_READ && wp->sp->state != VALID)
if (wp->bp->bio_cmd == BIO_READ &&
wp->sp->state == IO)
continue;
if (wp->ksp != NULL && wp->ksp->error != 0) {