aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 835ec1a25c7b..c04f2a753fda 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -731,9 +731,9 @@ md_kthread(void *arg)
if (error != -1) {
bp->bio_completed = bp->bio_length;
- g_io_deliver(bp, error);
if ((bp->bio_cmd == BIO_READ) || (bp->bio_cmd == BIO_WRITE))
devstat_end_transaction_bio(sc->devstat, bp);
+ g_io_deliver(bp, error);
}
}
}