Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp746788ybz; Fri, 17 Apr 2020 09:19:00 -0700 (PDT) X-Google-Smtp-Source: APiQypIbFC4IXLfatlvG0SJJ3T0ErBXUlrihMix3/HvWXzH71M2iQeo8+QKOMtKTZaSElq+EvkQY X-Received: by 2002:a17:906:3481:: with SMTP id g1mr3670088ejb.305.1587140340325; Fri, 17 Apr 2020 09:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587140340; cv=none; d=google.com; s=arc-20160816; b=bbg124P4YNamTosij/Yc3Qvn/oBSaut1r5AX0gWhr4dvSRoxv6ygN6OMdHnORCIsBE M0NNH+IrJ/EzOY+No0xftlfSsF83IlC6Pjc8o46Ib1q9FswJrtY5cMc+uCmhHNxxr4EN 45TcJByhc8xwdX9VBsFMUTdCJNRDEYgWani1FT+GB7EreispRfBcP50M4aBQiyYZF/56 nAVlvGDy+MyS4swpRcCXoGwM035KH/qoTrAZz8qcDW3//bqYNkANlOZZgWH61IGmSNZ1 +5VcMV4T4AiaX+OghgREYNxTmtaKpy3y0s28hJz4zucS1EIdEKQMENc9Mc2QK3YqKUoy i1dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2qQAiOb2aaHrFf6S7LJOoBEzXYCCXknIhOcX2pGcpl8=; b=rnonbMH1TcPfyv+MwFbE6Pe9hixrApBToEjD4n96+WU1bsZW9hKgg+6YLQjro1aaux aYIAf3p5HPQiSEU1g0pqXRwRVmRU7H4JFBaK8W83v2o89g92LJwIPDmEFdxZowx/vMiA 6eDp86IFbpri1FlYH9AldUXIdjE5hoHIzjP4YLabz5fScDD0CmOiQSWnuzA0ZwK/qFRr ym+xEhPJ9BWOjzcLoVxUMR6Y5SqT0VKmQ4WH3RX5XzZo9+wFKm4d0WP0Z+z//px6yLm7 oiipxImEaCyVdIExUa05GbFLSaLbT3Ir+lCs4qE1Zrw3GRaMM537CLA5izBECpF1WwW5 udjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AKJgxUHT; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si13826153ejk.126.2020.04.17.09.18.37; Fri, 17 Apr 2020 09:19:00 -0700 (PDT) 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=@kernel.org header.s=default header.b=AKJgxUHT; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729771AbgDQQPS (ORCPT + 99 others); Fri, 17 Apr 2020 12:15:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:37772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728105AbgDQQPR (ORCPT ); Fri, 17 Apr 2020 12:15:17 -0400 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 1DF672072D; Fri, 17 Apr 2020 16:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587140117; bh=ECCfbaSoEBEJ6WvTW36xUahNJiM0dMQr/S7euQZ88dw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AKJgxUHT9WLUQmTCNTg45NPovpnw3Zz+WXdmnua4zbrQuym9O5pYzYViZrtEaOwIJ lgaLTU2oB/a8gRFrCD2mLR4aor/SqW1qEQg+EN3aMGtDILQhgawWD7PWB/DW6O1cjO t4DLlGphDdhHzG+O9w0awnT2jYVYQo9OEwThD2Ws= Date: Fri, 17 Apr 2020 09:15:16 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Sahitya Tummala , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH] f2fs: prevent meta updates while checkpoint is in progress Message-ID: <20200417161516.GA17901@google.com> References: <20200331035419.GB79749@google.com> <20200331090608.GZ20234@codeaurora.org> <20200331184307.GA198665@google.com> <20200401050801.GA20234@codeaurora.org> <20200403171727.GB68460@google.com> <20200403172750.GD68460@google.com> <20200413174237.GC39092@google.com> <20200414134403.GA69282@google.com> <20200416214045.GB196168@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sahitya, Could you please test this patch fully? I didn't test at all. Thanks, On 04/17, Chao Yu wrote: > On 2020/4/17 5:40, Jaegeuk Kim wrote: > > On 04/14, Jaegeuk Kim wrote: > >> On 04/13, Jaegeuk Kim wrote: > >>> On 04/03, Jaegeuk Kim wrote: > >>>> On 04/03, Jaegeuk Kim wrote: > >>>>> On 04/01, Sahitya Tummala wrote: > >>>>>> Hi Jaegeuk, > >>>>>> > >>>>>> Got it. > >>>>>> The diff below looks good to me. > >>>>>> Would you like me to test it and put a patch for this? > >>>>> > >>>>> Sahitya, Chao, > >>>>> > >>>>> Could you please take a look at this patch and test intensively? > >>>>> > >>>>> Thanks, > > > > v5: > > - add signal handler > > > > Sahitya raised an issue: > > - prevent meta updates while checkpoint is in progress > > > > allocate_segment_for_resize() can cause metapage updates if > > it requires to change the current node/data segments for resizing. > > Stop these meta updates when there is a checkpoint already > > in progress to prevent inconsistent CP data. > > > > Signed-off-by: Sahitya Tummala > > Signed-off-by: Jaegeuk Kim > > Reviewed-by: Chao Yu > > Thanks,