diff options
author | markj <markj@FreeBSD.org> | 2017-02-09 00:28:03 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2017-02-09 00:28:03 +0000 |
commit | 9f64c6c84217c64a737d6735655dc0eaf36668ad (patch) | |
tree | 34ff31d91f9e4897ee1af0fc2dbfc12e1fec5706 | |
parent | 94cd7099c1b80911b506a997a6b547bfdb34ab58 (diff) | |
download | FreeBSD-src-9f64c6c84217c64a737d6735655dc0eaf36668ad.zip FreeBSD-src-9f64c6c84217c64a737d6735655dc0eaf36668ad.tar.gz |
MFC r311901:
Do not set BIO_DONE if the BIO specifies a completion handler.
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 81e591f..cd4a5ff 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -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); - } } /* |