Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3282492ybv; Mon, 24 Feb 2020 22:11:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwpEtAttu3LSEsRd4XM5CZHf5aWkop3GrbBTkcwA/sP/70TFNvEaKpLohs7xwCYE6//DpEq X-Received: by 2002:a05:6808:9ba:: with SMTP id e26mr2281140oig.81.1582611072669; Mon, 24 Feb 2020 22:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582611072; cv=none; d=google.com; s=arc-20160816; b=bwuaiw+pHKCmdMWEbbri6g1aYoTzHEG1wSPKiP+k0GYsoJdorEzQJ3zM6gJOanDooR yKGXWSULQ+fgkychtcCeL9flriCcezQSa7pKFGnr65UHf4caPKFsMNur2E6NsUmM32Bb UZVYvieoMbPK9WvLo0kNbynniRbx2c5C0/SklouyDJOu2uY8zUIbMqcnOFvN7tsron9P y/p4kDFgo4IfcPwssInl5It2VHIYkArHKaIc4sE8XiQKMAKlvPf83d62vRrd3T/Va6iq CUsamzs9vRqqeEyOn14KuohMKgPMfk6xXF6NNpUlJMhEFiRCwbs1CmHIk+ILAtCZrfwA Ff8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=D0vgozlleF+obQAUG9wvsA0ZaeeLbRIK8bRDhVowJP8=; b=UjLO5xZdJ+6xTJmF2V40LCPAAvymv6xYUWiRzHISPDXySEgNMt8QN5wkwMzGR47k67 CzZ2io3Nb65YzxNMZA0Nk8IogHEBnwgLuwyhX4/6f8rPKBn96vvqZckCillfTsT7iPh0 7JF+yLtSATCKiQgG7BRvmubaUcYSjRBGn5aglQYAz5chfjqkSO0dB70xrf4ghD9i7sGo HS4xSztJ3If35MUyORHc3VbOuH2RLI8VZUD6NyrAkFWBgJqzD1u24Ub3h1UKi1Thl5bO 48QdweJkf1sEH6xsZGncn5iL50VB3E0rDPew3q4ZnIMyOlOQVWz31ZmSPSFuO0lor2+n mW5g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p23si7843808otk.119.2020.02.24.22.11.00; Mon, 24 Feb 2020 22:11:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgBYGKP (ORCPT + 99 others); Tue, 25 Feb 2020 01:10:15 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:49198 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725837AbgBYGKP (ORCPT ); Tue, 25 Feb 2020 01:10:15 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 647837751992D0EB2F3D; Tue, 25 Feb 2020 14:10:10 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 25 Feb 2020 14:10:06 +0800 Subject: Re: [PATCH 3/3] f2fs: avoid unneeded barrier in do_checkpoint() To: Jaegeuk Kim CC: , , References: <20200218102136.32150-1-yuchao0@huawei.com> <20200218102136.32150-3-yuchao0@huawei.com> <20200219025154.GB96609@google.com> <576f8389-ba27-b461-5466-cc62e84b5c92@huawei.com> <20200224220031.GC77839@google.com> From: Chao Yu Message-ID: Date: Tue, 25 Feb 2020 14:10:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200224220031.GC77839@google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/2/25 6:00, Jaegeuk Kim wrote: > 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() No problem. Thanks, > >> >> 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 >>> . >>> > . >