svn commit: r259952 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Fri Dec 27 17:04:52 UTC 2013
Author: kib
Date: Fri Dec 27 17:04:51 2013
New Revision: 259952
URL: http://svnweb.freebsd.org/changeset/base/259952
Log:
Revert r259200. There are geoms/drivers which do not update
bio_completed, only manage bio_resid, e.g. sa(4).
Reported and tested by: Manfred Antar <null at pozo.com>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/kern/vfs_bio.c
Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c Fri Dec 27 16:59:47 2013 (r259951)
+++ head/sys/kern/vfs_bio.c Fri Dec 27 17:04:51 2013 (r259952)
@@ -3678,7 +3678,7 @@ bufdonebio(struct bio *bip)
struct buf *bp;
bp = bip->bio_caller2;
- bp->b_resid = bp->b_bcount - bip->bio_completed;
+ bp->b_resid = bip->bio_resid;
bp->b_ioflags = bip->bio_flags;
bp->b_error = bip->bio_error;
if (bp->b_error)
More information about the svn-src-head
mailing list