BIO_DONE
KKASSERT((bio->bio_flags & BIO_DONE) == 0);
KKASSERT((bio->bio_flags & BIO_DONE) == 0);
if (flags & BIO_DONE)
bio->bio_flags &= ~(BIO_DONE | BIO_SYNC);
KKASSERT((bio->bio_flags & BIO_DONE) == 0);
nflags = (flags | BIO_DONE) & ~BIO_WANT;
bp->b_bio1.bio_flags |= BIO_DONE;
bp->b_bio1.bio_flags |= BIO_DONE;
if ((bio->bio_flags & BIO_DONE) == 0)
bio->bio_flags &= ~(BIO_DONE | BIO_SYNC);