From 5299f691453774f1926f05c36373765a221a872a Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 28 Apr 2003 06:15:39 +0000 Subject: Better criteria for skipping disk reading BIO_READ work packets. --- sys/geom/bde/g_bde_work.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/geom/bde') diff --git a/sys/geom/bde/g_bde_work.c b/sys/geom/bde/g_bde_work.c index 036f01e..7893b57 100644 --- a/sys/geom/bde/g_bde_work.c +++ b/sys/geom/bde/g_bde_work.c @@ -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) { -- cgit v1.1