Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2899873ybv; Mon, 24 Feb 2020 14:00:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxveQyBqd16kMysyo5oO5yTY4r5cC8b/yIp30Qgr3/M5smAaVq/xSwGOj1sTFmNjmHhCaWP X-Received: by 2002:a9d:6f8f:: with SMTP id h15mr39391126otq.1.1582581652780; Mon, 24 Feb 2020 14:00:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582581652; cv=none; d=google.com; s=arc-20160816; b=KdjuzayR0Z/qEMes1oSObDfMrOalRRbhQN8PlYPB1UTDdIa0wisuSSftTezvGg4sYc i7ki1Jz1RkiJoYkKnGf7lH9b4Z9D/93f7XA/Z407tzkP0MzpqgUl1Du1CG043UXHnSxp zLeJX4kaFIvGVq2ze+UX8qQhrvDdRQsDiKsTO+3R2yF0jromFshs17tz05hsSYPwpmp4 mtLU7WAR7gSyjzRH1i4yrj8GGfQ8yJauTeQBLjR4ElCHXJd0dBIQn/iQ4UhyDbRAGJrS qnprsmKs7fZhfwFjfA9ou872PaPnP+Pn3Jr95FEDvye8/uGHVvVq9YVJJgX7ldGxqHLY 16JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ruu/Rn4hMv8v5OeE3t24iof8dSYHpCJXLEq2Majx4cc=; b=C5MNR2H4Im2Blm2Jg9fLGQZES4O36m9YG1Wt2tek17yxvuztqYQTSQao6U7g4hDjwz uSAQ1gVBYTEl3zuyk9VoxWgYpbJtcY9yd2X2izqWxQAb3LcjOUa0ks0KDcfmXQ1t+dT5 cRhPghUL+O3pk6DfPAI1y3E9HU4ixE86CYCYiuOHxEJ1t/kCZuhDC/aJVD7PnTvT+v82 VyE0D12kT5JzAbbF/Q7UEYGcP7++pAsjzMvfmpgsdJx3AhEMbzpvgsF8khklpI6D8eh3 a9kD3gp7Cu6Jd4+/iwgBjYuQEZX2ZYRLeGK79WK0csCNMcAZX2elpaNI2PriAYAV5yGs 9YbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g0MIX48m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w202si5312516oif.121.2020.02.24.14.00.39; Mon, 24 Feb 2020 14:00:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g0MIX48m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727996AbgBXWAd (ORCPT + 99 others); Mon, 24 Feb 2020 17:00:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:41112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727421AbgBXWAc (ORCPT ); Mon, 24 Feb 2020 17:00:32 -0500 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1DD0120CC7; Mon, 24 Feb 2020 22:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582581632; bh=EZ+Ei0mMz9aXg3foEaWmEi27b7awpExGYB0AFFAuoqI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g0MIX48mZqh7MT751Vhna3OD982qJJ5UTkzxOZbW23WmZhEVMyMaAgEy6GR85ShQY MHxPab2CLyyQ6oJO+pLL5YlNbtDt7e3pw1yr8mRUi30r1jQqo/NRNHPI+4NTbb5z5x n82nVdimza2L8+HJKyGBjmGN4g2OgB6DaVVPCJkM= Date: Mon, 24 Feb 2020 14:00:31 -0800 From: Jaegeuk Kim To: Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org Subject: Re: [PATCH 3/3] f2fs: avoid unneeded barrier in do_checkpoint() Message-ID: <20200224220031.GC77839@google.com> References: <20200218102136.32150-1-yuchao0@huawei.com> <20200218102136.32150-3-yuchao0@huawei.com> <20200219025154.GB96609@google.com> <576f8389-ba27-b461-5466-cc62e84b5c92@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <576f8389-ba27-b461-5466-cc62e84b5c92@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/19, Chao Yu wrote: > On 2020/2/19 10:51, Jaegeuk Kim wrote: > > On 02/18, Chao Yu wrote: > >> We don't need to wait all dirty page submitting IO twice, > >> remove unneeded wait step. > > > > What happens if checkpoint and other meta writs are reordered? > > checkpoint can be done as following: > > 1. All meta except last cp-park of checkpoint area. > 2. last cp-park of checkpoint area > > So we only need to keep barrier in between step 1 and 2, we don't need > to care about the write order of meta in step 1, right? Ah, let me integrate this patch into Sahitya's patch. f2fs: fix the panic in do_checkpoint() > > Thanks, > > > > >> > >> Signed-off-by: Chao Yu > >> --- > >> fs/f2fs/checkpoint.c | 2 -- > >> 1 file changed, 2 deletions(-) > >> > >> diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c > >> index 751815cb4c2b..9c88fb3d255a 100644 > >> --- a/fs/f2fs/checkpoint.c > >> +++ b/fs/f2fs/checkpoint.c > >> @@ -1384,8 +1384,6 @@ static int do_checkpoint(struct f2fs_sb_info *sbi, struct cp_control *cpc) > >> > >> /* Flush all the NAT/SIT pages */ > >> f2fs_sync_meta_pages(sbi, META, LONG_MAX, FS_CP_META_IO); > >> - /* Wait for all dirty meta pages to be submitted for IO */ > >> - f2fs_wait_on_all_pages(sbi, F2FS_DIRTY_META); > >> > >> /* > >> * modify checkpoint > >> -- > >> 2.18.0.rc1 > > . > >