Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp153287pxu; Thu, 3 Dec 2020 23:06:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJybGSBUEFwLLNNlsHTBkyjYpV6yDXc5SfKdrTRdLmcTXclWgwfIccS79CTrklaDyAnVfged X-Received: by 2002:aa7:d608:: with SMTP id c8mr4291618edr.260.1607065582092; Thu, 03 Dec 2020 23:06:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607065582; cv=none; d=google.com; s=arc-20160816; b=WNRIxOKMAJzJdiBzlp5jCIw/qTSCykAV6qSicXry0pJ78DPA0ceAQRRiTwVTwz4zh0 W3sWjOuOrwqw2tztJ501HVB4VsDnZXH7TG7ILYMw7OF0Lal7lPq1MDb0OxrtUXEo4+5L BTf+nY7Oxe2b2G9U/DqBAAQqxtYcDzswfXp2Nc7kHNgvlVOZ+reGGCOaQr2kqUhSLL4A maOgHC1aaYo1bu98uqFAZpDTR7+kDRpwRtpv7aOBv4yf1JIGWYl2x56U8Gf//yI1L4A8 FPVrFOQ+5vBaRmZlxHVAjTSx6TOE+omXMO8ArujRlvcGlBDunpaJW9oSR4Z+IcONUlFa rGrw== 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=DGtZLLbFDWoCQqYx9LfvjHPyF73CfxgpUXIf4y83koQ=; b=U3JLGPExeA50JWQo76OGnZWnc52Vo5X3b9K0kUUqUC6EK4WJwtul2uTKFvU0wa0jsh uvPuhiegbQpUehDSQLPzY5hD8yjSF8RgwvNvJiyJAwvpgippo6RtpzvzY/0G61BZnbiY C1Hzv4UHVIn8SL165Z+avpCp67PPQVdNhc8HvXtr9Of2wH9BVi3vzzA5jt8L40btx0uf cKw6G+VYLApIlexgYkPGYFtrDtGfcwFahrHsls7yJAa/GROdy9X+Pl/hqlFUthVkozUq U71ZxOitBA9Sc8b/u0kY6m3wOQcy2ReLNPKXNH1VaZ/9zKDo1EeVj3ZkvwDnmfERGZV8 6Iyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PKdyv27y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm2si2356159edb.472.2020.12.03.23.05.58; Thu, 03 Dec 2020 23:06:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PKdyv27y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728248AbgLDHCr (ORCPT + 99 others); Fri, 4 Dec 2020 02:02:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725550AbgLDHCr (ORCPT ); Fri, 4 Dec 2020 02:02:47 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F049C061A4F for ; Thu, 3 Dec 2020 23:02:07 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id o24so5416960ljj.6 for ; Thu, 03 Dec 2020 23:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DGtZLLbFDWoCQqYx9LfvjHPyF73CfxgpUXIf4y83koQ=; b=PKdyv27y3AZcNIpFmJN4IexnpXLeYF7dsYQD0hLr6Re40GrmkO6dSIBUQzFksxPrWy qnQaRAqgM85WhG4I9zWQzxu1CbBtXf052bshXLmR8KcrOFQ/tIQKFmuTsOrb8ZqC+yyj 9HwEYGuufCYCuuZsY9BEBI/tY/d5bmrUYc/LfRQpQil7msHn33KHeb7m8ftfYc5oEkqJ qV41Jfn0skzideGxiH9UXZILkWCwerJAqj1u60Y3UI/A8G1e77kqiAqbXiWeGcdmbJUn fjnffPmoeZUmL8IuMGKce+brMxyVYtbwiCVRD/nKUEhOHT70MK8G0rSunGqISv0e5gx5 UO/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DGtZLLbFDWoCQqYx9LfvjHPyF73CfxgpUXIf4y83koQ=; b=eJHTnOKoKl88smE4JwNSMXikql3294Vuyzp81ebT741h5fcLbXXAOIUqjOCFMlMHpR BRY3M2G+wxo+XE91wpICYqc/gbyB/E9Kv6CtcxOnC19QKPComjPSft5/3I7Jc+HfTjsC tbkIqHrfFsAIxgZTZtvzyEe5fRS8T1oGozjIUMNvOkse3GYiLY5iCOvUjnX9DA6GFXrO /CXAFOXg+FhR5irsmaUeZ67+AnCCuN2v75Sztdekh7N5iWSI8DofNxZqnD7PjX7oTVR7 NSy/wsY9BJAR1HhqNZjaiYFHUezd3Qj1hRXMkLopKbnOHXEllFWnNPOcAqSmqfP4XWQ/ jYsg== X-Gm-Message-State: AOAM530/fcFe1byCw56hUQHnu8y75K/H7knZ/3Gc6L6owzI/A+u86KoR ySJxE0rRelkIn2t3ySsZPCkq1cGy+x3lnFJ9K38= X-Received: by 2002:a2e:9707:: with SMTP id r7mr2658587lji.265.1607065324902; Thu, 03 Dec 2020 23:02:04 -0800 (PST) MIME-Version: 1.0 References: <20201204005847.654074-1-daeho43@gmail.com> In-Reply-To: From: Daeho Jeong Date: Fri, 4 Dec 2020 16:01:54 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH] f2fs: fix race of pending_pages in decompression To: Eric Biggers Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the explanation about verity. I got your point. Thanks~ 2020=EB=85=84 12=EC=9B=94 4=EC=9D=BC (=EA=B8=88) =EC=98=A4=ED=9B=84 2:18, E= ric Biggers =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Fri, Dec 04, 2020 at 02:00:34PM +0900, Daeho Jeong wrote: > > I think I don't understand how verity works. > > Right after verity is enabled on a file, is the verity logic working > > for the whole file data area? > > Or it's just working for the data area which is updated after verity is= enabled? > > > > It's for the whole file. > > My point is just that if there is a bio that saw that verity isn't enable= d yet > when it started and therefore STEP_VERITY didn't get set in the > bio_post_read_ctx (or the bio_post_read_ctx didn't get allocated due to o= ne not > being needed), then the filesystem shouldn't change its mind and try to v= erify > the pages when the bio completes if verity happened to be enabled concurr= ently. > It's too late for that bio. > > - Eric