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@pozo.com>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2013-12-27 17:04:51 +00:00
parent b61a53d43d
commit e136eac224
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259952

View File

@ -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)