From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DB6DC433FE for ; Wed, 30 Mar 2022 15:55:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348485AbiC3P5j (ORCPT ); Wed, 30 Mar 2022 11:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344260AbiC3P5i (ORCPT ); Wed, 30 Mar 2022 11:57:38 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A403411172; Wed, 30 Mar 2022 08:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HMOfcZjpKd4HXdTf9ncMsCYUAoRwb/T1kB389y4bGdM=; b=vGlnpbNoOXVcnZwa9UF4XeaYjg WhSwj4N324o9z4cmAPpBHKLuGFaSQDMnT2YLY1wfdVblptnzehIXDuv9lkPIlElrn2MrE7VX7Glft UACY82x8M8Jv6swJSFUDw7eh4N+BahXF+TuslARHWS8UJQqPM+YPM8gcr6yZa32K49JMRWPeJL+z5 PX0lW2IbmXB+otVjy8FmuXPTYqXNiQHPtYVvcNvP02ykgn7Kk2sHeYMjQbJ1QTfY99WjV9cRWRtnJ GqqqB2jqMAzL0gJ2pAsmJnSEVnlL60AGLGdKckmYakWKDAttkG47zhFguWE7IYditonyLJoTItjnH Dp600qZg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZafi-00Gh5T-DI; Wed, 30 Mar 2022 15:55:46 +0000 Date: Wed, 30 Mar 2022 08:55:46 -0700 From: Christoph Hellwig To: Theodore Ts'o Cc: Linus Torvalds , Jan Kara , Matthew Wilcox , Brian Foster , Linux-MM , linux-fsdevel , linux-xfs , Hugh Dickins , Namjae Jeon , Ashish Sangwan , Ext4 Developers List Subject: Re: writeback completion soft lockup BUG in folio_wake_bit() Message-ID: References: <20220318131600.iv7ct2m4o52plkhl@quack3.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sat, Mar 19, 2022 at 12:23:04PM -0400, Theodore Ts'o wrote: > So the thing that I've been waiting to do for a while is to replace > the whole data=ordered vs data=writeback and dioread_nolock and > dioread_lock is a complete reworking of the ext4 buffered writeback > path, where we write the data blocks *first*, and only then update the > ext4 metadata. > *) Determining where the new allocated data blockblocks should be, and > preventing those blocks from being used for any other purposes, but > *not* updating the file system metadata to reflect that change. > > *) Submit the data block write > > *) On write completion, update the metadata blocks in a kernel thread. I think that would be easily done by switching to the iomap buffered I/O code, which is very much built around that model.