Better criteria for skipping disk reading BIO_READ work packets.

This commit is contained in:
Poul-Henning Kamp 2003-04-28 06:15:39 +00:00
parent 82774d8040
commit 035694b29a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114150

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) {