The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=515fa5ff2e4db907379c284fb7e7df77b4096948

commit 515fa5ff2e4db907379c284fb7e7df77b4096948
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-10-25 09:17:02 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2025-11-04 04:11:12 +0000

    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
---
 sys/geom/geom_vfs.c | 2 ++
 1 file changed, 2 insertions(+)

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;
        }

Reply via email to