Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2203293pxu; Sun, 6 Dec 2020 23:32:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzH1DOHZ4mJCWQlfLAV56AWIqS44/YofE/aHAZaapmNvQMKhcgMeKkgyRu9soM/IRU6j59f X-Received: by 2002:a50:ed04:: with SMTP id j4mr19324195eds.84.1607326322407; Sun, 06 Dec 2020 23:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607326322; cv=none; d=google.com; s=arc-20160816; b=rji9vB4xBAn6+hysWcfmypZ1uw+u4CtwnciVQo+tt5ts4pPtN0k+gMvRjnfNqLqvfA 7CJFlsfq0I219Uyw62eJBd9DkP2iaUQiYhb4Wl/H2nJ3G74lSQYRMKfjVioGlYw+4agH w8Aq3qlO6boUeQ6/Fi3jLEjXL//UO/8N3rtFjZ2QDnY41S9e+jf8mvVt8ENG8eq2Wrgq Y55k8SgoIdKxChmBpKJ+EMPSC+XYTrUqLfL29v+4Nvdq3c7sIcwBr2S6DUy161xqO6wK dyzglUWiwlI0Ma2mt1uIZv/bKOtYLhXGxC4BmN92Qu94tS2fKHcbPrb7rZ/2vhtHDL1c vCjg== 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=xssgPHeMTAo4K6R4jN7ETP4Q6QWs4ur+getv3Nc7VYo=; b=JmhV7rCTla4W1EVhDnk10tacQ6/uTiNrSwbJbSc3C6kO2PjE7lsMQn7Qumhhc5hkZ4 270xD94XXm0a+1eOV+iv5OYinujEH32S0KEHj4c4+aMzOghWUaY+f5wKglOaGnlNoTzh 0Drt3HBgp+GGAi5Ivq6X5sMU3yWakYtFwVW9SVYNL6Xd5OgIFDljIuB6lAOehVKmfGTa PbgOjGqGkFGELkn8nZ/eWqOkmOVLedhXPYaKiu2AQN2vtSgCymqvsSruZAcFqjUKGJ6H bnl95M8P4UKvb1cNZM0VpVUDa1z3uEN/lJZeuuvy+hxRHjvjkNVHpnS2GyfqR2wenQ+d IDbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RVBYcnQx; 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 dt10si6550913ejc.145.2020.12.06.23.31.38; Sun, 06 Dec 2020 23:32:02 -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=RVBYcnQx; 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 S1725973AbgLGH3X (ORCPT + 99 others); Mon, 7 Dec 2020 02:29:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgLGH3V (ORCPT ); Mon, 7 Dec 2020 02:29:21 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A58FC0613D1 for ; Sun, 6 Dec 2020 23:28:40 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id t22so13921214ljk.0 for ; Sun, 06 Dec 2020 23:28:40 -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; bh=xssgPHeMTAo4K6R4jN7ETP4Q6QWs4ur+getv3Nc7VYo=; b=RVBYcnQxwT/pyLzbrXk4X8TqpF8sst1fcXHN1zeAh9yFuAOusAum/OOyqoIeeiblxe 99g3ymYK0jfqG1541u3I2AuHqe6NeWXjSJt2YjTQj+NohRfnxu76dySCvHEhMR2SWEIr 74WHfOZq+r4b+EWTe4P0DAQ3K/OHVXwXTyMypif/XzYCBV+Te3d3vSeY7ulCBq1jVvuM Zridh148X/G2RFMuinQndxF9GmFKYXcpSbqfb7EttjNDirTWBN+ZMdJj49PbHBRrzyBa zRspjgpEihHTPm9OgU9RZVpWV3aojQfAJHIKFvcEqT/8kGaGkDEE/FvtGXvVrwUhPN16 03JQ== 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; bh=xssgPHeMTAo4K6R4jN7ETP4Q6QWs4ur+getv3Nc7VYo=; b=QKbrmy32vuw9APRC7yDpWAiSfJi13EZU1TFyWZpvGk/ID7tc/PIjwKaKNwjO2rpHDm NPuiGdxH0jjhyAyDrHu5ugSWEvajShi8nDVSVj3t7NrmNtfGTFVnPeMYBHXcm9J6XLFH O06QR0hfdcAprIn+IFbu5AyP9kMxvn28tJgmmcxAPcSBt32qQbPbgUx25gtKGIQVoVxP CoOB6beORtZn/8Qv2E9XsTVVDWfMs5r9GERCOLM3zqEPEY5yvOmCni850Vv+O/3ZQkdq cPR4OuLVK/+UN+C/bjm1fM1TPhHMcPN6YuDsNcDHiU2oVQ9eMf0z14yh6TVdGKimF7oT YVaQ== X-Gm-Message-State: AOAM531qdyfSP4LFre4GqEGSnLghg643tkDcSzBcAfdy5YbRhuw+4AWs 3sS5VsyEivBNqwaCFqAMJsLsgke3u2ycrwkSs+vA4o1Cm6w= X-Received: by 2002:a2e:bc16:: with SMTP id b22mr8595524ljf.166.1607326119032; Sun, 06 Dec 2020 23:28:39 -0800 (PST) MIME-Version: 1.0 References: <20201205042626.1113600-1-daeho43@gmail.com> In-Reply-To: From: Daeho Jeong Date: Mon, 7 Dec 2020 16:28:28 +0900 Message-ID: Subject: Re: [f2fs-dev] [PATCH v3] f2fs: fix race of pending_pages in decompression To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Jaegeuk Kim , Daeho Jeong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It looks like it will be better to move this into merge condition? > > if (bio && (!page_is_mergeable(sbi, bio, > *last_block_in_bio, blkaddr) || > !f2fs_crypt_mergeable_bio(bio, inode, page->index, NULL) || > f2fs_verify_mergeable_bio())) { > I tried this for the first time, but it requires unnecessary checks within the compression cluster. I wanted to just check one time in the beginning of the cluster. What do you think?