aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-12-27 21:49:35 +0000
committerMark Johnston <markj@FreeBSD.org>2020-12-27 21:49:35 +0000
commit795a009b325c93a0f48a83a68b5278160ac6d38e (patch)
tree4c84b819532ee1919cbf0326cc890e700b06391f
parente458944cf9deec51d03ec751050a58ddf43e796f (diff)
-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 1778eda48f35..1b4b583b3c09 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -1244,7 +1244,7 @@ md_kthread(void *arg)
bp->bio_bcount = bp->bio_length;
devstat_end_transaction_bio(sc->devstat, bp);
}
- bp->bio_completed = bp->bio_length;
+ bp->bio_completed = bp->bio_length - bp->bio_resid;
g_io_deliver(bp, error);
}
}