Commit f4a61bee authored by HardenedBSD Sync Service's avatar HardenedBSD Sync Service
Browse files

Merge branch 'freebsd/current/main' into hardened/current/master

parents aef9ad60 dfd704b7
......@@ -4384,7 +4384,11 @@ biodone(struct bio *bp)
atomic_add_int(&inflight_transient_maps, -1);
}
done = bp->bio_done;
if (done == NULL) {
/*
* The check for done == biodone is to allow biodone to be
* used as a bio_done routine.
*/
if (done == NULL || done == biodone) {
mtxp = mtx_pool_find(mtxpool_sleep, bp);
mtx_lock(mtxp);
bp->bio_flags |= BIO_DONE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment