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 <[email protected]>
  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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to