Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp106571ybv; Tue, 18 Feb 2020 18:52:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyxSUOyLcNd2lIFXUb0elxCZGpCq6ZfNdX1L8nOWsOEtrygk1nKn6LeAqGnHrWPYpA/3QoL X-Received: by 2002:a05:6830:1385:: with SMTP id d5mr18761413otq.61.1582080749416; Tue, 18 Feb 2020 18:52:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582080749; cv=none; d=google.com; s=arc-20160816; b=ydApxOnk7ur1wHNbRFIqul5KNBEUuO3R2IYYiRmYC65g5pC9N2ZkiuE9pKLV7zs3kP KAN7uNIkqhEvqkmnx6xXnPogsf41JKxmhCJLLX3+koVzSc5pDdd0D7uwzzfY7mtA+668 5pJytxLF6UWseF7J9R0CTqQIBXuSCa4WHpkmXBfHrxJ487TZttJIXeRYa/JWwsaT9lNZ gWgV/4bFt2iNskIJTl+Bx2oLp12My4rc45plhlm5quuXx9PbZxl6SQZhIsiJrCBWVioA mUJeNMMUUZQmRcT9STXUJ6JqDqxullCwhz5FmqiJI4FL/fM7lhpUiN9loNd31q2uvTAD zohw== 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=3JapKoMnLJuqC3WRLqvP9qwWgQh2Qim4UA8E1/gqB8o=; b=G6/yznWuiBulVwhd2cik3h40fmngSA5w6HfoqOY86uRsBciv7ZK6LTGz87RiWbFX3z XgXHoQZbnT4gixLYn/65oVnYmN5xQNJc+Yh0cN3uNo6qxrFTH1BO+tSGeGZquxn4kMGe irOnD7S+SMrO8Zhri7Nn/ov70C1mpqC/uSQmCYEWXklfEwQxx7k/ChpxqiAcUHsxuNs4 hKf0amhd3ceZaH6QPF7QSfwgGWVgDPgl3cKy7wfz6NU8xu4V1Z/RyHFTPoqLvoOdf3t5 s3ZtoE0P+GtSp4B/7wD+ySGo8KIe9SY5vxgKWcDn9tqPtOdIECLBw/z9L49atYt1X9ta P6OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XR9V1FR5; 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 s17si408493otr.320.2020.02.18.18.52.18; Tue, 18 Feb 2020 18:52:29 -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=XR9V1FR5; 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 S1728240AbgBSCvz (ORCPT + 99 others); Tue, 18 Feb 2020 21:51:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:34168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728027AbgBSCvz (ORCPT ); Tue, 18 Feb 2020 21:51:55 -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 B4967207FD; Wed, 19 Feb 2020 02:51:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582080714; bh=/yXdGWmYsKqPX70bTTNAr64nklyYO6iG2lgGEie9/Nc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XR9V1FR5JQ/VnRmYbFVz1VJC0jUNv0LCv0L90Zs0t1FInM2sK6BPB89oh2nVAnsjz 1j8gWFCFmU3WBZ3o9K+XChjUjepAn00v8laLChhyc8WbUiZBkikuMGO+kbtxc8yiWM DcYckPYwAfceieD0lL4raxeXnD9eOSbbAd3roLCk= Date: Tue, 18 Feb 2020 18:51:54 -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: <20200219025154.GB96609@google.com> References: <20200218102136.32150-1-yuchao0@huawei.com> <20200218102136.32150-3-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218102136.32150-3-yuchao0@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/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? > > 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