Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp266661pxb; Tue, 12 Apr 2022 01:15:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAQmEmwmrIhdtDjSvEYG7FT1iC1qN2KGDntc/ACCCeFc6EyIfmxqHsS21EQF4QCWcZA0/Q X-Received: by 2002:a17:906:5d05:b0:6e8:40cc:1a99 with SMTP id g5-20020a1709065d0500b006e840cc1a99mr22168432ejt.734.1649751328209; Tue, 12 Apr 2022 01:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649751328; cv=none; d=google.com; s=arc-20160816; b=i0A+iAL1T+6VcpaE/FC883sMhkuPQrpC66t2uAde1pF8qI+8nBgQAomAVpun667qS0 sy3OB50AbGNb0mPJdZfjAOyhm6xYelODx6SyNDUtADANd05+25a37hyVTJPd+rEd5PJf QGq+kVfUsB8wQmeGiMbNVn3UtJZpEVhD9EB6P0kQNn+jGBSFzg81pbdMrcFJ+2WpXdPC bM2usZEkhfheH64htrHHNls23xUEHhhfYidXu7lLJ5Gz8UMExXnr9Wm6hyc98/B0Hbc2 wtqu7NKkKghGDn0lnQ1UpaEB33gR7ggl/SCpmZF+BunxWmJZTKi0o2tPA+ybE1yMZ0F8 Na4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wVlj//Uk2r+zFhzKKcNvkzy0UWBQjwnW21bSyTNY+uw=; b=pWT38OLpGrKOuLBhnShFqhxNlsGeCail6H7lkeOy9Kyt1w8ZBCnvbbX+XzqvYVc93u KMPHGkzss+qeCAbmT6D2mRuOFVjLxIpVW2YfOXgDgKrgoU8qqJHT5U49ScdnvTZP7/0C Muu97Y4cCxUbvWpG9atIYI3n3tuMJLpKHxiRNVMyEnrL/75jc9d3Fibhbb+MpIDzYzP9 gUsT+BtxE4Odvv2xhTEcgb0lX9cIJ0/5vVbwHR0xJo8trbGwAk+aOoSnuAzMaBIYxssU hImOk5BjL+uaTi2wx5ZcNBgKNJl7HHGkceg/o1RmhfpQ6flJNaNImM/L/a1MgKtFE9v2 iPvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gU4CC3bz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a50d844000000b00418f03382cesi8971828edj.283.2022.04.12.01.15.01; Tue, 12 Apr 2022 01:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gU4CC3bz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S245100AbiDKVXf (ORCPT + 99 others); Mon, 11 Apr 2022 17:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350236AbiDKVXA (ORCPT ); Mon, 11 Apr 2022 17:23:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D10AB2E9CB for ; Mon, 11 Apr 2022 14:20:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B093616DC for ; Mon, 11 Apr 2022 21:20:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AEE5C385A3; Mon, 11 Apr 2022 21:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649712043; bh=VcMY/lkJl6v3hVQXFaFT0pm0LPne9KUAFAaE6uCrta0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gU4CC3bzYJkTVyk5PqY3DOzknRj13nibImxJjft8FbJbyS+aLxlVtUwOON/Po4SJ8 1Nnj4WqU27WloPkpnT4RsEw7Pg+Rywitynfvqajwo5azIlfgkTvpOaJ3D2G/K135xf 08Hc9/hizjG+MWuzpeYgtVElI4IIOkrGhttw5/dBjT3iDUxdfFvYxEKZ9gTsC37iuN 9bF0E3aSAbXTZkwhJt27n2ic8fUT7psT32uuWFV/hkAPLSxtnxAicvNSXH/8pGSJri QB0MaD/DOcNZiy4eMJos4MO8DNmO6+zVJvWs+mDADGKXFsjhOo3yKuj2DfWALgFPqs C1ToNl9rNCKHA== Date: Mon, 11 Apr 2022 14:20:41 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Yufen Yu , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH 4/5] f2fs: get rid of stale fault injection code Message-ID: References: <20220401071909.505086-1-yuyufen@huawei.com> <20220401071909.505086-5-yuyufen@huawei.com> <0c134e0e-b2d0-0bc0-42fc-cd220ff77e72@kernel.org> <25a24259-3ac3-81ab-1c28-f2a4886888b5@huawei.com> <778b1f04-a71b-a226-f7a7-4833fc9bf7c2@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <778b1f04-a71b-a226-f7a7-4833fc9bf7c2@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11, Chao Yu wrote: > On 2022/4/6 11:01, Yufen Yu via Linux-f2fs-devel wrote: > > Hi, > > > > On 2022/4/1 16:28, Chao Yu wrote: > > > On 2022/4/1 15:19, Yufen Yu via Linux-f2fs-devel wrote: > > > > Nowly, we can use new fault injection framework. Just delete the > > > > stale fault injection code. > > > > > > > > Signed-off-by: Yufen Yu > > > > --- > > > > ? fs/f2fs/checkpoint.c |? 2 +- > > > > ? fs/f2fs/f2fs.h?????? | 51 ++---------------------------------------- > > > > ? fs/f2fs/super.c????? | 53 -------------------------------------------- > > > > ? fs/f2fs/sysfs.c????? | 23 ------------------- > > > > ? 4 files changed, 3 insertions(+), 126 deletions(-) > > > > > > > > ... > > > > > > ????????????? break; > > > > @@ -1963,14 +1920,6 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root) > > > > ????? if (F2FS_IO_SIZE_BITS(sbi)) > > > > ????????? seq_printf(seq, ",io_bits=%u", > > > > ????????????????? F2FS_OPTION(sbi).write_io_size_bits); > > > > -#ifdef CONFIG_F2FS_FAULT_INJECTION > > > > -??? if (test_opt(sbi, FAULT_INJECTION)) { > > > > -??????? seq_printf(seq, ",fault_injection=%u", > > > > -??????????????? F2FS_OPTION(sbi).fault_info.inject_rate); > > > > -??????? seq_printf(seq, ",fault_type=%u", > > > > -??????????????? F2FS_OPTION(sbi).fault_info.inject_type); > > > > -??? } > > > > -#endif > > > > > > This will cause regression due to it breaks application usage w/ -o > > > fault_* mountoption..., I don't think this is the right way. > > > > > > Thanks for catching this. I admit it's a problem. But, IMO fault_* mount > > option are mostly been used in test, not in actual product. So, I think > > it may just affect some test applications. With the common fault injection > > framework, it can be more easy and flexible to do fault injection test. > > Therefore, I want to remove the two mount options directly. > > > > If you really worried about compatibility, how about just reserving the > > two inject_* options but without doing any thing for them. We actually > > configure fault injections by debugfs in this patch. > > > > Or do you have more better suggestion? > > Could you please consider to keep original logic of f2fs fault injection > if user use inject_* options, otherwise following common fault injection > framework? > > Thoughts? I think it'd be useful to test roll-forward recovery flow by using those mount options, since runtime fault injection cannot enable it during mount. BTW, what is the real benefit to use the fault injection framework? > > Thanks, > > > > > Thanks, > > Yufen > > > > > > > > > > > > > > > > > > _______________________________________________ > > Linux-f2fs-devel mailing list > > Linux-f2fs-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel