Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp919397iob; Wed, 18 May 2022 16:31:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbLOXD3sIUEMyLt42Xhu7PiaLKMJTlp5xL8RKmzoaaYnWKykD1WfAQkUdJbRyhfzuDMds3 X-Received: by 2002:a05:6a00:2b6:b0:510:b7d7:ca88 with SMTP id q22-20020a056a0002b600b00510b7d7ca88mr1753354pfs.35.1652916716217; Wed, 18 May 2022 16:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652916716; cv=none; d=google.com; s=arc-20160816; b=HWRIwbJU0k+FN1sMS7Lq1s55nZx23dn/pmJvVLlCADRlLzQJBdt2fyYy2K+f8eQ9Ei 8CGxGR7NR8NZ3HKK36ZXbJv8oD+Fcye891bDs9pSU3/AFoSuK22X7IXB7EHvs3VTtkj3 T+ATopbBzxU8IZg3gwbPKQeC9QINckXEmyQndvaD78AiDyu2vNr/QKvBORA4Td3HpemS 2DHC9gXGiFWa/abMGbvrotXC5xDLOxXZ1TSI7qKFMbqvXVCAGdtM9bJS/jsSh9evHGxK wfoTFTuJ5i1oftNXxuRtYExrAZmdAgwRoZnngkd9vmwPPbXySoqsHxB0qYHBsQcpF0WQ BRqQ== 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-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=Lp41b+iLQDBUE33amXeZw3Bv4+Ea7zlobtwTQcyHL58=; b=Axkm31+NSC+/rm90Y06uEMRhHwMU5e+Bx5g9QMSku4vETPJosfBHgvQ6Vk6zwHDA9S WMd0COhecbBR6pIvNv6MQu1YpyF8qGRKFI/EdCDtTRr0YtRagdOdD34jYjn547bVJ0sG mABrsHvV5kPzji4PtbGEd/E0wYJwdSctovnOCg3FpveVhaZYEfA9eLMYN/It7qnBznl8 IUI5SSaaVM4crLdY9Lx8OmxFb5NAn2qnNpzrNpp7OMGnhA4XR+D2IaawA6B538ydQE4M fyb5Pfwi3v49hHuLeYMy5hHeN2b0j7Q1CsEGwIPEFFlTg80UVVyupGAGscmS8wwKJQKY MxEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KRV9qLcS; 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 f13-20020a63554d000000b003c6d5d28d7esi4132443pgm.176.2022.05.18.16.31.43; Wed, 18 May 2022 16:31:56 -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=KRV9qLcS; 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 S230015AbiERWff (ORCPT + 99 others); Wed, 18 May 2022 18:35:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbiERWfd (ORCPT ); Wed, 18 May 2022 18:35:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009341FD876 for ; Wed, 18 May 2022 15:35:32 -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 89DAC6167D for ; Wed, 18 May 2022 22:35:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6802C385A5; Wed, 18 May 2022 22:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652913331; bh=JsNUGeYCd9jl73VaIgc6JuqYsiBSisQYXVe0o/Ol3wg=; h=Date:From:To:Subject:References:In-Reply-To:From; b=KRV9qLcS8wCMGeqf4/VCUWDoXMQvZqsQNGFoU8yhXC7DAs7tO5jVMRSwU3X24XB3m viK843eqIrxzcULosTdfEHqYfFuPDc8SnE6eP8q0A/STIAuq5l9VpWLKpAPrUDzTbX jH/QIdoL31KWjFbEfmJp5TUUyz5MoHOx06bJEIUoRbBLs+9RgQAnxw/ylkL2qbTa7k umDIundqGtIhM+IoO6gFT7CdZIkLqaarONAMVYdrt9R/tHAOJiv+j3Nb91XjTZtNSU TipO4kOkEyBi4+8ExPY2+A+20jbb39HUbezHHDazLgw4JVz0GQFeieoGmJTJ6LVwxc pyXk4SvcilYzw== Date: Wed, 18 May 2022 15:35:30 -0700 From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH] f2fs: decompress data without workqueue Message-ID: References: <20220518175547.3284875-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220518175547.3284875-1-jaegeuk@kernel.org> X-Spam-Status: No, score=-7.4 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 Please hold any test, since this patch has a bug. On 05/18, Jaegeuk Kim wrote: > Let's decompress data under the same context to avoid workqueue delay. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/data.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c > index 54a7a8ad994d..37aa7ac5d463 100644 > --- a/fs/f2fs/data.c > +++ b/fs/f2fs/data.c > @@ -285,10 +285,12 @@ static void f2fs_read_end_io(struct bio *bio) > return; > } > > - if (ctx && (ctx->enabled_steps & (STEP_DECRYPT | STEP_DECOMPRESS))) { > + if (ctx && (ctx->enabled_steps & STEP_DECRYPT)) { > INIT_WORK(&ctx->work, f2fs_post_read_work); > queue_work(ctx->sbi->post_read_wq, &ctx->work); > } else { > + if (ctx && (ctx->enabled_steps & STEP_DECOMPRESS)) > + f2fs_handle_step_decompress(ctx); > f2fs_verify_and_finish_bio(bio); > } > } > -- > 2.36.1.124.g0e6072fb45-goog