Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7099474rwd; Tue, 6 Jun 2023 06:25:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ySFCIn+tS6ePi3Ek+3OEtxfcCLlIUjqnnncBkVJq9s3ykz4gw8aBBP3e86kteGD8rXmzz X-Received: by 2002:a05:6a20:7291:b0:100:6f8f:7793 with SMTP id o17-20020a056a20729100b001006f8f7793mr1285929pzk.3.1686057956974; Tue, 06 Jun 2023 06:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686057956; cv=none; d=google.com; s=arc-20160816; b=tisjgf/PAJ7gyqUajyNaEVPw3zS4nOOZyCiQSveDV9Fk/v4qpYJ8oneAQTEMeLUZbF 73ulp3lk+sAHxsGC7feUOVcHXqnQ1RDF8dNFUPOrALTyE3IDQTg1VRG78NJj4PC6SKaW hRG+S4w9ZZPibMG/y7vyc8A0eObtalIAnvCjg3iuM1msJLr6TuSxp215R/FnJfA7Fq9P c+j35Fard4uuOfgTbzYbf8INONdH/L7FBUZ8RbUyDRqT6Jr/ejJxTszvNTjHQ4uIl96+ LX1sDvMWddQwEZJpMY3L2VwyCX1ZCTUepqwTLCwmAf5RiwNC/prR6lq/0j0JJ4o5sAvB qjFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K+8gN3mys4shi44Ntk5Z6kfGgYi/MZwn+Sx3ui4XedQ=; b=nRjzfAe+4yV850vG64eBLoyxM+iSbuBnrSU2RymNv7CqTTh6cJfOmti9NMSfmb6Zqi MUkhsPBSkjm4ma44F6BaS/q1lfzh4EDEOv1tv8FjbiP1Ivno/OqFbeI1KIFX79umltUu +zFFFlzM5v5D6u0ObHSk/pPz5XygvBoJQx+o+pnUmSMv14xvINsYFV761rhCq1cn4qnB +VdLom3t6LoOPC0JSlzaXbmG7I6q/tVHdEiASs9Uj/AzoptnB9Vf7lObBPY8/c8MpzOo yRdkRe0n5D33k12hMIWboLnpvKKPo60NDSp0jP5Bb7DEAS3RvMBsFuj95mJdvo6G1dQ3 Trsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OLAHYPmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 q16-20020a17090311d000b001a94b91f412si7339302plh.164.2023.06.06.06.25.42; Tue, 06 Jun 2023 06:25:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=OLAHYPmD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237842AbjFFM4K (ORCPT + 99 others); Tue, 6 Jun 2023 08:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235747AbjFFM4H (ORCPT ); Tue, 6 Jun 2023 08:56:07 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C489C1707 for ; Tue, 6 Jun 2023 05:55:39 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9745ba45cd1so769077166b.1 for ; Tue, 06 Jun 2023 05:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1686056138; x=1688648138; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=K+8gN3mys4shi44Ntk5Z6kfGgYi/MZwn+Sx3ui4XedQ=; b=OLAHYPmDOSe6if7yJwf04ybBcGlviwBtqBERr5r7W4MQ4N46P1fx3JBdDDChpEQdPi 2XEyBQd7iU7bpaf9Vtg5TNLIPVQhys6rdoQgHDmnoQvWvriIXCHTp2HsMdYVJSMQxtjv ituIyTaWknNba6m3JAz5dZQ5KIgIYVzqg7368= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686056138; x=1688648138; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K+8gN3mys4shi44Ntk5Z6kfGgYi/MZwn+Sx3ui4XedQ=; b=cj9olqUAocrYMp16sfgtDMwx1NBCXaNb/oT4dZmG/HhctQuyby5saiDHNi00OzgwT9 SdQtElagDmmNDFl+MggLfC2KXz8BLEKuqpz23GAw5DgIcY0w1hgFURkVrai6o1+//5/v 7pAs1a/1b5s8lG3iTDdX1WwX+ngGn4P5k3YE4OxUWaKiLktjdiyH+GWCqytS/RJVTljG 3ljs5mz2a5ZsdEOiKS9FTRBWaN2qdDXojmzOnxVTQK/1QiiFZlkL0XZOXyIwuYBrmhK3 OwuqgbaGCGUPk6owU4zGxdeW7bUbaZjDLjqDVRG2+U5K5WS369mhtxv1e22iFDVKjGK0 s4Qw== X-Gm-Message-State: AC+VfDzXa6DofZYcbXGHcdrULetFdifk7lYGSGdRMFSwVCej6d8FT7bl YDcP+SlbivQftIo7KLkgEo8zBMBuCaml9vQeFE5XruR2 X-Received: by 2002:a17:906:6a0b:b0:970:1b2d:45bf with SMTP id qw11-20020a1709066a0b00b009701b2d45bfmr2555870ejc.61.1686056137807; Tue, 06 Jun 2023 05:55:37 -0700 (PDT) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com. [209.85.208.45]) by smtp.gmail.com with ESMTPSA id d13-20020a05640208cd00b0051643d71ce9sm4506144edz.26.2023.06.06.05.55.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 05:55:37 -0700 (PDT) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-51492ae66a4so8510668a12.1 for ; Tue, 06 Jun 2023 05:55:37 -0700 (PDT) X-Received: by 2002:aa7:de9a:0:b0:510:ee0f:1eab with SMTP id j26-20020aa7de9a000000b00510ee0f1eabmr1797750edv.41.1686056136935; Tue, 06 Jun 2023 05:55:36 -0700 (PDT) MIME-Version: 1.0 References: <20230606124800.1151665-1-agruenba@redhat.com> In-Reply-To: <20230606124800.1151665-1-agruenba@redhat.com> From: Linus Torvalds Date: Tue, 6 Jun 2023 05:55:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] gfs2 fix To: Andreas Gruenbacher Cc: cluster-devel@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, URIBL_BLOCKED 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-kernel@vger.kernel.org On Tue, Jun 6, 2023 at 5:48=E2=80=AFAM Andreas Gruenbacher wrote: > > - Don't get stuck writing page onto itself under direct I/O. Btw, is there a test for this DIO case? We've had the deadlock issue on t page lock (or for inode locks or whatever) for normal IO when faulting in the same page that is written to, and we have as pattern for solving that and I think there are filesystem tests that trigger this. But the DIO pattern is a bit different, with the whole "invalidate page cache: issue, and the fact that you send this patch now (rather than years ago) makes me wonder about test coverage for this all? Linus