Re: git: 2612f1b8649b - main - deadfs: Return ENXIO instead of EIO when the device is gone.

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Fri, 24 Oct 2025 15:50:47 UTC
--------
Warner Losh writes:

> --000000000000d0eb540641e8d38b
> Content-Type: text/plain; charset="UTF-8"
> Content-Transfer-Encoding: quoted-printable
>
> On Fri, Oct 24, 2025, 10:50=E2=80=AFAM Poul-Henning Kamp <phk@phk.freebsd.d=
> k> wrote:
>
> > I updated the "ThinkCenter" to 15-BETA2-p1 and made some experiments
> > and I get different results no than before.
> >
> > This is obviously without the fix.
> >
> >
> > Now I see 25 read(2)'s return EIO before ENXIO arrives.
> >
> > Each of those 25 read(2)'s do:
> >
> >         read(2) syscall
> >         all the way down to CAM
> >         for 4(?) retries:
> >                 CAM sends CCB down
> >                 CAM gets CCB back with error
> >                 CAM printf's two lines to console
> >         CAM returns EIO
> >         userland gets EIO
> >         userland printf's to stdout (=3Dconsole)
> >
>
> What are the cam messages?

	https://phk.freebsd.dk/misc/IMG_20251024_174810.jpg


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.