Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1612004pxp; Mon, 21 Mar 2022 00:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxSP+khm9yehyfqX/cQ/+7iOViuidE1z8m9u8HTHnnWGKZgibOWZcWRiA1nIWVVLP5USqH X-Received: by 2002:a17:902:f650:b0:14f:139e:aef2 with SMTP id m16-20020a170902f65000b0014f139eaef2mr11286540plg.151.1647847477997; Mon, 21 Mar 2022 00:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647847477; cv=none; d=google.com; s=arc-20160816; b=G4/oeirHmWQE/2cPIVhtlzwtK5xq4qwYiSZf+yP/2eB3/N1bbUVKqyM+0s0p76SAAl 75TQHRhzqcUA75o77Y7G2TFPoQqxITv1vta+PK3b9ydsyb+vxoaQEVFXg/bBO+vWrgxP t2dTdO7YI4XEMPtwrRE4gmLyHkeVih7dPVlhC8WhS7jxnR9ScuVlyR+RW6s/mbS0wGY1 mOgOMPoeaDbi5TlPPRfOfEun0fpyo8qIor7r+LE8VMOjHtd2QcRAq89amfM1VJ1k3zZ1 6enL7JgPha8mjNiBSKNYcxaU6AGvuoyhlMi0gaEf5DA+HVVoHn0xqII1AkhUye5J+UNi 8YCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=x0WpCPeJF/glvoQcLTwJKAKI6FncEVSy4Y2K6xPy2Y8=; b=ErGC2ZzCqRtVZOk97vpGojJg9c+DjRM3xzBrqHR3rVTsV+DZ14rH5+WT7vxtWr43OG Ic/xcje5CYNTbWPEYy53sQPvqJ/BRGNv2LbUocrwT3C9l/6xWH2uB3OMS0KeGRRKAeUx z793r2z1+QccBd2oNWMsgKyy5EDRfSkPCmO6PtH54/LFGYGY/ENsb/0PeqTTDaoXRbPw ii8fggmC641GhRKC555yRZd3v8KF094DgUtQ4c+68gHkxW5zL7VwEcrjtXstDdcecebr bX37qAZ2uR9bp7XzpZJI9b036JmnA0ixEwR5YdwthSqPzxB8b2fFsG8ygeWQAM0lIrLz qutA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="f7MfvhR/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a631401000000b003816043eef7si12211087pgl.236.2022.03.21.00.24.21; Mon, 21 Mar 2022 00:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="f7MfvhR/"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbiCRS5p (ORCPT + 99 others); Fri, 18 Mar 2022 14:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240043AbiCRS5p (ORCPT ); Fri, 18 Mar 2022 14:57:45 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C07221590E for ; Fri, 18 Mar 2022 11:56:26 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id c15so12421342ljr.9 for ; Fri, 18 Mar 2022 11:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x0WpCPeJF/glvoQcLTwJKAKI6FncEVSy4Y2K6xPy2Y8=; b=f7MfvhR/cTZArrnZxlIv8GZbrzzOnswona1V4BXmQPljdWKur1uZmgcfw5Gov3BZTV +8oIobQjsXBFlocU280eAc/KMDRwR0QsHriW+A424ELUu54U5AF1TX4DGsG3wfztxp2c uc7bAxqjmBZAmgiEe/ZSRGk4oCxcgeO2gFlNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x0WpCPeJF/glvoQcLTwJKAKI6FncEVSy4Y2K6xPy2Y8=; b=Za9abtTxTowyRFkJ1IAPP6RjGCnHJpRceV9kcelr6Jy7lI3B18nENCL/jGAeAV4pdo k01Fj4YN8ZKUHYey3XtHKMOQ99hcChnkLo8xqTyuLBFdH1FbVYHxH1pDbH/WdfBhn70G NSbSph2vkZHlp9VhU9d4Y3Tdsti4fEjCPepM80cIKGWlKdsb50GKf3PPYcFPmfeDgmGl 35PUB9vxrx6orrQcfKEBMhIKMlVCsczxHH9ypUVbDQuc0dXUEkZcx0Dg4bHBvCAJuGrh E9x54p+ZOu9RLFcP3KwwU/XhC244ssV/4TN7BBARetqu3pZtEbC5OU4C7iO48jNi147V +sFw== X-Gm-Message-State: AOAM533AhfNcOmRxlokUye2d9RRsp6aOZVZZB+Y74f2JNPkj3cux0ivL BBBjzi4eV+srhUJPC2vQzpgjXxQY50XMsx85S1c= X-Received: by 2002:a2e:808b:0:b0:238:ea7c:faf8 with SMTP id i11-20020a2e808b000000b00238ea7cfaf8mr6904637ljg.513.1647629784386; Fri, 18 Mar 2022 11:56:24 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id y14-20020a2e544e000000b0024800f8286bsm1110957ljd.78.2022.03.18.11.56.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 11:56:22 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id t25so15486670lfg.7 for ; Fri, 18 Mar 2022 11:56:21 -0700 (PDT) X-Received: by 2002:a05:6512:2037:b0:448:92de:21de with SMTP id s23-20020a056512203700b0044892de21demr6661516lfs.52.1647629780934; Fri, 18 Mar 2022 11:56:20 -0700 (PDT) MIME-Version: 1.0 References: <20220318131600.iv7ct2m4o52plkhl@quack3.lan> In-Reply-To: <20220318131600.iv7ct2m4o52plkhl@quack3.lan> From: Linus Torvalds Date: Fri, 18 Mar 2022 11:56:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: writeback completion soft lockup BUG in folio_wake_bit() To: Jan Kara Cc: Matthew Wilcox , Brian Foster , Linux-MM , linux-fsdevel , linux-xfs , Hugh Dickins , Namjae Jeon , Ashish Sangwan , "Theodore Ts'o" , Ext4 Developers List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Mar 18, 2022 at 6:16 AM Jan Kara wrote: > > I agree with Dave that 'keep_towrite' thing is kind of self-inflicted > damage on the ext4 side (we need to write out some blocks underlying the > page but cannot write all from the transaction commit code, so we need to > keep xarray tags intact so that data integrity sync cannot miss the page). > Also it is no longer needed in the current default ext4 setup. But if you > have blocksize < pagesize and mount the fs with 'dioreadlock,data=ordered' > mount options, the hack is still needed AFAIK and we don't have a > reasonable way around it. I assume you meant 'dioread_lock'. Which seems to be the default (even if 'data=ordered' is not). Anyway - if it's not a problem for any current default setting, maybe the solution is to warn about this case and turn it off? IOW, we could simply warn about "data=ordered is no longer supported" and turn it into data=journal. Obviously *only* do this for the case of "blocksize < PAGE_SIZE". If this ext4 thing is (a) obsolete and (b) causes VFS-level problems that nobody else has, I really think we'd be much better off disabling it than trying to work with it. Linus