Author: markj
Date: Thu Feb  9 00:28:03 2017
New Revision: 313460
URL: https://svnweb.freebsd.org/changeset/base/313460

Log:
  MFC r311901:
  Do not set BIO_DONE if the BIO specifies a completion handler.

Modified:
  stable/11/sys/kern/vfs_bio.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/vfs_bio.c
==============================================================================
--- stable/11/sys/kern/vfs_bio.c        Wed Feb  8 23:17:23 2017        
(r313459)
+++ stable/11/sys/kern/vfs_bio.c        Thu Feb  9 00:28:03 2017        
(r313460)
@@ -3929,10 +3929,8 @@ biodone(struct bio *bp)
                bp->bio_flags |= BIO_DONE;
                wakeup(bp);
                mtx_unlock(mtxp);
-       } else {
-               bp->bio_flags |= BIO_DONE;
+       } else
                done(bp);
-       }
 }
 
 /*
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to