Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp120286pxk; Wed, 9 Sep 2020 00:15:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPPOo3YFTwQP9pZzFYFouZTy4IJCylL7pPX+euEqhKop4eaOnOkYIpSocnMz4Cn7wKR95k X-Received: by 2002:a17:906:3552:: with SMTP id s18mr2264329eja.23.1599635706515; Wed, 09 Sep 2020 00:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599635706; cv=none; d=google.com; s=arc-20160816; b=yqFrfeH5XjYss9vnmZ9Fh14mw6jGmQCthu7b9QTcgi9spDTz9wxnIUOJ/LjH6uIgim wI8O5WcAOQoH50l536Ka5wuKb9yTNsVXanVufdcmvFabBvPGKfMrA306xslodnNhlyDu QmVKX98UyH0MwSywXbFzYhSmfAjE04fN1AK5TwVndXFVFhN1k3kkWspGDGjwzqOgFZuY xMySo+WnUwVq770zVPF+4WBYUNcW6D+KzVZh7zgZpPfrySCgalsIufRf4tlY5qVt8BZu DKNBcklT7V4w5koUHn5cfoh/DmoLElQEFN09VD/7vH/lzLY0DFG1JrTwOh7sqmd/tlJ2 lHEg== 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:to:subject; bh=GpTVH89pcbIX2ymuU/NiXMwgTwU76tW1R6QRyA+aguo=; b=mtHBMJxXn4Kujef7wdBZgP9i40QqDn4WvBRZF6prdn3FcP0CsZoRg943P5zRhLbRRm b1OPX8msrD22RJ1zinJFyUsYDvKBQzek+kmGvqdlhuC4aDqJPC1YhTB20qq8k0OrF1Uq yLLKxc9+1fDLWW+dP8cVWepmJ3HLk726vKdGespkSv5cdBSC3vQS8OY9fd/7yA5T+j3q r6hfgoZoelmZUZC1ks3ouh87DpT6ZncRRtt+0zuGcuxW6vJCSPLUfFA/aWT/KjFxrwSN 86yGfKQsv2RAZt/tGyySfGdyj2w8g6rC80AxO5RK1D5P19h38uh+1lWVruLR0C4/kawT DsnQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr5si927596ejc.370.2020.09.09.00.14.43; Wed, 09 Sep 2020 00:15:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbgIIHNu (ORCPT + 99 others); Wed, 9 Sep 2020 03:13:50 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:11275 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725826AbgIIHNu (ORCPT ); Wed, 9 Sep 2020 03:13:50 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5E817F02400258A90C6E; Wed, 9 Sep 2020 15:13:46 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.213) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 9 Sep 2020 15:13:45 +0800 Subject: Re: [f2fs-dev] Question about STEP_DECOMPRESS_NOWQ To: Daeho Jeong , , , References: From: Chao Yu Message-ID: <220b1cb4-9c2e-c9db-5590-6dcd43b9aaed@huawei.com> Date: Wed, 9 Sep 2020 15:13:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daeho, On 2020/9/9 12:43, Daeho Jeong wrote: > Hi Chao, > > I have a question about the below flag for decompression. > > STEP_DECOMPRESS_NOWQ, /* handle normal cluster data inplace */ > > According to the comment, you added this for using inplace I added this for the condition that: in compressed inode, partial clusters are written as normal (non-compressed) one due to bad compress ratio, during reading data in normal cluster, we don't need to queue them in workqueue, instead, we can just handle them in IRQ context (end_io()). That says, if all pages in bio are non-compressed, we tag step w/ STEP_DECOMPRESS_NOWQ, once there is at least one page is compressed, we change step to STEP_DECOMPRESS. > decompression but inplace decompression mode is not being activated 'inplace decompression' means decompress in a. reader thread or b. IRQ context ? Thanks > now, since we are setting STEP_DECOMPRESS right after bio_add_page(). > > if (bio_add_page(bio, page, blocksize, 0) < blocksize) > goto submit_and_realloc; > > /* tag STEP_DECOMPRESS to handle IO in wq */ > ctx = bio->bi_private; > if (!(ctx->enabled_steps & (1 << STEP_DECOMPRESS))) > ctx->enabled_steps |= 1 << STEP_DECOMPRESS; > > Did you mean to deactivate inplace decompression mode on purpose, > since it had an issue? I am a little bit confused about this. > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel > . >