diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -1244,7 +1244,7 @@ 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); } }