Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1177982rdb; Fri, 20 Oct 2023 10:27:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFATep6GRvZe8zOO149cof3vUFbIXICRLG4sHk3hX8Wp5UJfisioUSx7AnPvnueJCXBiXgD X-Received: by 2002:a17:902:e844:b0:1c6:25c3:13d3 with SMTP id t4-20020a170902e84400b001c625c313d3mr2815829plg.6.1697822829226; Fri, 20 Oct 2023 10:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697822829; cv=none; d=google.com; s=arc-20160816; b=PY+fEe1TTStWLemcfA0HtHar1sJulJ9v0hutkYa16XQ7QzLY1I+C99mV+I7Ivmyj4A 2+RS5D5ku2aban182Go+DyV8GbeH8EvX7sG7FApmaEHieya0MGhM1IGKZnOcxteccLnA awdrhr0hRpZ2CAbM0Oc2hQmml3A3yS01oMqy2CLdw8RSBSmnyEPAm4s/P/5hcNrL/2FC +t8nTGT/CBLVThIGaR6cvZg8IF5pJrjCOo/aWMHGRzN9DT1ueLpz3O5kP+vmAlvr+Ywl 3WSlqAHYDNdSib9F5CZlI0XapRkrCugTIZrkUAAPIfY7NZJuSCXpcI4Qh6Zw89D0XBZJ eIDQ== 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=hFd/PeJUrCqAUlQIC7OhOkLtSLgI8B2z7y+zqnxlUNQ=; fh=YRHjPZZv8FVSDYTZwLzAPbChG55V8v59BT6PvHVucWw=; b=eyhZLJV4eCkTOq9iPUv3YiJfGoQsTa18uIbPxE++Ak/SJm7wd6MSXq5Vr9T1qrtbom O5hAPDZCfSM4UwByWGTJZydTxIPeJup9psFX24fCG5f4dtLGGVs6Eyx62L2iL7WJcp55 +01xYEUsQpNJjqX0FSjSwGVx8u0ynOhU14bpF5PhONoHzzxg4ua8Yx8O9NQfcX0MPWqW PBO6eRqPNysENcvDg/wsQMnhl00c42PSroX/tjO4NRhewAJjyZbVjPntIDQnTeEoNbys LsM+qzvpoRyfnerqX69MX/PFVDeXVLXdz+KYqYMJQm7tGSzDX4kmjeneC+tEOkLpNPYl U8TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OfGJEPhn; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j4-20020a170903028400b001bb8df95094si2322553plr.509.2023.10.20.10.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 10:27:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OfGJEPhn; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B274E8371D38; Fri, 20 Oct 2023 10:27:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbjJTR04 (ORCPT + 99 others); Fri, 20 Oct 2023 13:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbjJTR0y (ORCPT ); Fri, 20 Oct 2023 13:26:54 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD7ED78 for ; Fri, 20 Oct 2023 10:26:46 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-9be02fcf268so163340066b.3 for ; Fri, 20 Oct 2023 10:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697822804; x=1698427604; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hFd/PeJUrCqAUlQIC7OhOkLtSLgI8B2z7y+zqnxlUNQ=; b=OfGJEPhnc0FM12mb0/PglYwg3d9ioh1VclQkm/RleoLtT9F7NDk1yS8UsDlbcls34H HquzbTBcQXFBrr7OHmr8W3r0E2898iBQuZWMB+7t/pH4KOHFrpcXRFmbm5j2q3Kcdhsg tL1kEIFdmmUpH2YbFU4HdpB0tTJ1TWqGFga/4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697822804; x=1698427604; h=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=hFd/PeJUrCqAUlQIC7OhOkLtSLgI8B2z7y+zqnxlUNQ=; b=vGzj6TspGfJpLMSE1fR1Bf7hMUMtKcyrunAkv4UMSZjMdl5n9OlpjL9dvCAspulfzQ JjLFwcZZ4SEHhS1LRy5zCfwfKP+98C24LXgkRY/q3Z7FNL/LprMv6QVH3tTR4xd7YGWM sCfZ0c2aSPd2w1nS2bcjdepnR4vWHHO7jwQcPZSgq9UbDEmJXJgz3DaTFKEp3Bwy48TK okz8amxCS0JgjhNMNvGptPk/fsjHbYl9S/74BHB7shak9FqVxOalR1xXnAouvRn+hrUO tq76W0KEMjtOSF5fIeaytSPMAAJ1u6yXLjInLkBQeYX8oXqOvbInj1UspDaP3f8F6uPh jJkw== X-Gm-Message-State: AOJu0YzR1kYRD2H/N8uMzfSEUqe/rCHneVohDkUJd+W9EldjhYKQOLpw 5OkFsNxhw+mzehj8GdkWZuIVE+xjTTi4E33rhddxI0bN X-Received: by 2002:a17:906:73ca:b0:9ae:7081:402e with SMTP id n10-20020a17090673ca00b009ae7081402emr1402092ejl.64.1697822804454; Fri, 20 Oct 2023 10:26:44 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id k15-20020a1709065fcf00b00997d7aa59fasm1928130ejv.14.2023.10.20.10.26.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Oct 2023 10:26:44 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-53db360294fso1612264a12.3 for ; Fri, 20 Oct 2023 10:26:43 -0700 (PDT) X-Received: by 2002:a17:906:fe06:b0:9bf:1477:ad82 with SMTP id wy6-20020a170906fe0600b009bf1477ad82mr2068018ejb.76.1697822803062; Fri, 20 Oct 2023 10:26:43 -0700 (PDT) MIME-Version: 1.0 References: <20231019164240.lhg5jotsh6vfuy67@treble> In-Reply-To: From: Linus Torvalds Date: Fri, 20 Oct 2023 10:26:26 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] ext2, quota, and udf fixes for 6.6-rc1 To: Andy Shevchenko Cc: Baokun Li , Josh Poimboeuf , Jan Kara , Nathan Chancellor , Nick Desaulniers , Kees Cook , Ferry Toth , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 10:27:06 -0700 (PDT) On Fri, 20 Oct 2023 at 08:12, Andy Shevchenko wrote: > > > > --- a/fs/quota/dquot.c > > > +++ b/fs/quota/dquot.c > > > @@ -632,8 +632,10 @@ static inline int dquot_write_dquot(struct dquot *dquot) > > > { > > > int ret = dquot->dq_sb->dq_op->write_dquot(dquot); > > > if (ret < 0) { > > > +#if 0 > > > quota_error(dquot->dq_sb, "Can't write quota structure " > > > "(error %d). Quota may get out of sync!", ret); > > > +#endif > > > /* Clear dirty bit anyway to avoid infinite loop. */ > > > clear_dquot_dirty(dquot); > > > } > > Doing the same on the my branch based on top of v6.6-rc6 does not help. > So looks like a race condition somewhere happening related to that dirty bit > (as comment states it needs to be cleaned to avoid infinite loop, that's > probably what happens). Hmm. Normally, dirty bits should always be cleared *before* the write-back, not after it. Otherwise you might lose a dirty event that happened *during* writeback. But I don't know the quota code. ... the fact that the #if 0 doesn't help in another case does say that it's not the quota_error() call itself. Which it really couldn't have been (apart from timing and compiler bugs), but it's still a data point, I guess. Linus