summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 73303e2..25b9de0 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2845,10 +2845,10 @@ biowait(struct bio *bp, const char *wchan)
while ((bp->bio_flags & BIO_DONE) == 0)
msleep(bp, NULL, PRIBIO, wchan, hz / 10);
- if (!(bp->bio_flags & BIO_ERROR))
- return (0);
if (bp->bio_error != 0)
return (bp->bio_error);
+ if (!(bp->bio_flags & BIO_ERROR))
+ return (0);
return (EIO);
}
OpenPOWER on IntegriCloud