summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/bde/g_bde_work.c3
1 files changed, 2 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud