git: 725f4b108d54 - stable/15 - geom(9): unset the BIO_ERROR_COMPAT flag correctly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 Dec 2025 02:07:55 UTC
The branch stable/15 has been updated by khng:
URL: https://cgit.FreeBSD.org/src/commit/?id=725f4b108d54dcf84ee8bb30dfb223cbcce989cc
commit 725f4b108d54dcf84ee8bb30dfb223cbcce989cc
Author: Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2025-12-22 00:52:56 +0000
Commit: Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2025-12-22 02:07:03 +0000
geom(9): unset the BIO_ERROR_COMPAT flag correctly
Fixes: 112c453ba910
Approved by: re (cperciva)
---
sys/kern/vfs_bio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index c02aa30fb03a..dc90bd3add22 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -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;
}
}