From: Chao Yu <yuchao0@huawei.com>
To: Daeho Jeong <daeho43@gmail.com>, <linux-kernel@vger.kernel.org>,
<linux-f2fs-devel@lists.sourceforge.net>,
<kernel-team@android.com>
Subject: Re: [f2fs-dev] Question about STEP_DECOMPRESS_NOWQ
Date: Wed, 9 Sep 2020 15:13:45 +0800 [thread overview]
Message-ID: <220b1cb4-9c2e-c9db-5590-6dcd43b9aaed@huawei.com> (raw)
In-Reply-To: <CACOAw_wHONVJL438_Akvo3wZewJeVKiT_8LqW0EXULxAscpGjA@mail.gmail.com>
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
> .
>
next prev parent reply other threads:[~2020-09-09 7:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-09 4:43 Daeho Jeong
2020-09-09 7:13 ` Chao Yu [this message]
2020-09-09 23:23 ` [f2fs-dev] " Daeho Jeong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=220b1cb4-9c2e-c9db-5590-6dcd43b9aaed@huawei.com \
--to=yuchao0@huawei.com \
--cc=daeho43@gmail.com \
--cc=kernel-team@android.com \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®