From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EE922F5307; Wed, 29 Oct 2025 16:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761755834; cv=none; b=D8JV/ARpRPXMinFhuikspuRJ0YsfeL7sON6iBTNYIWgUNoEp5LfZJsgJr5NyBn9j4mqzsdYN/KGsw2GXK2GTu2ObBAuKWaEZtUeBkrctHsJ8l3J6jzznB2FVL34WRYeMhe3LgLpO3XsoUx4S2QwgU8Ax783DEvwOEs8GNUeQVYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761755834; c=relaxed/simple; bh=544zncZ8JVr5/MwT4Yh6pgPM/1JKpGhS6xAaRmMInas=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JteYZv3ftx0XFux1E8OPx4Ejxd4vYsKFWT2d8moXiGWoHfDrTXWDI8lrNCPP52uGlliqhz8zM3G9ykO2eyXzuGoSNIKMmKPPtdWhFabrgzXu2IDhR6ywzDyyqmPBCe/kIHiaP31W2JCz71nJ43vjtL1e+YA9qrFe6uHteWqQ1RY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id BA7B2227A8E; Wed, 29 Oct 2025 17:37:08 +0100 (CET) Date: Wed, 29 Oct 2025 17:37:08 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , Carlos Maiolino , Christian Brauner , Jan Kara , "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-raid@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 2/4] fs: return writeback errors for IOCB_DONTCACHE in generic_write_sync Message-ID: <20251029163708.GC26985@lst.de> References: <20251029071537.1127397-1-hch@lst.de> <20251029071537.1127397-3-hch@lst.de> <20251029160101.GE3356773@frogsfrogsfrogs> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251029160101.GE3356773@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Oct 29, 2025 at 09:01:01AM -0700, Darrick J. Wong wrote: > Hum. So we kick writeback but don't wait for any of it to start, and > immediately sample wberr. Does that mean that in the "bdev died" case, > the newly initiated writeback will have failed so quickly that > file_check_and_advance_wb_err will see that? Yes, this is primarily about catching errors in the submission path before it reaches the device, which are returned synchronously. > Or are we only reflecting > past write failures back to userspace on the *second* write after the > device dies? > > It would be helpful to know which fstests break, btw. generic/252 generic/329 xfs/237