aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2025-10-25 09:17:02 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2025-11-04 04:11:12 +0000
commit515fa5ff2e4db907379c284fb7e7df77b4096948 (patch)
treec2d053eafb2c6ece59cf442d1f02bff7d4fb91f0
parent6c406b5b93125d030f0e63716ff389ce1a6ec4c5 (diff)
geom/geom_vfs.c: use EXTERROR_KE() in g_vfs_strategy for ENXIOs
As an example of use for the bp_exterr infrastructure. Reviewed by: mckusick Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D53351
-rw-r--r--sys/geom/geom_vfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_vfs.c b/sys/geom/geom_vfs.c
index f074ac43d245..122e2f6a02ec 100644
--- a/sys/geom/geom_vfs.c
+++ b/sys/geom/geom_vfs.c
@@ -200,6 +200,8 @@ g_vfs_strategy(struct bufobj *bo, struct buf *bp)
mtx_unlock(&sc->sc_mtx);
bp->b_error = ENXIO;
bp->b_ioflags |= BIO_ERROR;
+ EXTERROR_KE(&bp->b_exterr, ENXIO,
+ "orphaned or enxio active");
bufdone(bp);
return;
}