From nobody Fri Oct 24 14:50:03 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ctQmb53s9z6DcW6; Fri, 24 Oct 2025 14:50:07 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4ctQmZ1VkZz3HjW; Fri, 24 Oct 2025 14:50:06 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id DF9FEC3F3D; Fri, 24 Oct 2025 14:50:03 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 59OEo3Vp043004; Fri, 24 Oct 2025 14:50:03 GMT (envelope-from phk) Message-Id: <202510241450.59OEo3Vp043004@critter.freebsd.dk> cc: Warner Losh , Konstantin Belousov , src-committers , "" , "" Subject: Re: git: 2612f1b8649b - main - deadfs: Return ENXIO instead of EIO when the device is gone. In-reply-to: <202510241314.59ODEq5a035616@critter.freebsd.dk> From: "Poul-Henning Kamp" References: <202510240741.59O7fBAe041995@gitrepo.freebsd.org> <202510241012.59OACUDA002781@critter.freebsd.dk> <202510241116.59OBG1ii003074@critter.freebsd.dk> <202510241314.59ODEq5a035616@critter.freebsd.dk> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <43002.1761317403.1@critter.freebsd.dk> Date: Fri, 24 Oct 2025 14:50:03 +0000 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.63 / 15.00]; MISSING_TO(2.00)[]; NEURAL_HAM_LONG(-0.98)[-0.979]; NEURAL_HAM_SHORT(-0.95)[-0.952]; NEURAL_HAM_MEDIUM(-0.70)[-0.699]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[phk]; MISSING_XM_UA(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-all@freebsd.org,dev-commits-src-main@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[bsdimp.com,gmail.com,freebsd.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[freebsd.dk]; RCPT_COUNT_FIVE(0.00)[5] X-Rspamd-Queue-Id: 4ctQmZ1VkZz3HjW I updated the "ThinkCenter" to 15-BETA2-p1 and made some experiments and I get different results now 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 (=console) And only then does ENXIO finally appear. This is single-user mode with a random old USB stick. i915kms does not seem to affect the result in this experiment. I'm buildLLVM'ing on my laptop, will perform more experiments on that platform once that is complete Poul-Henning -- 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.