geom(9): unset the BIO_ERROR_COMPAT flag correctly

Fixes:		112c453ba9
Approved by:	re (cperciva)
This commit is contained in:
Ka Ho Ng 2025-12-22 00:52:56 +00:00
parent 3ab741a76a
commit 725f4b108d

View file

@ -4479,7 +4479,7 @@ biodone(struct bio *bp)
bp->bio_error = bp->bio_error_compat;
bp->bio_flags |= BIO_ERROR;
bp->bio_error_compat = 0;
bp->bio_flags &= BIO_ERROR_COMPAT;
bp->bio_flags &= ~BIO_ERROR_COMPAT;
}
/*
@ -4524,7 +4524,7 @@ biodone(struct bio *bp)
}
done(bp);
bp->bio_error_compat = 0;
bp->bio_flags &= BIO_ERROR_COMPAT;
bp->bio_flags &= ~BIO_ERROR_COMPAT;
}
}