From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Stefan Kerkmann <s.kerkmann@pengutronix.de>,
linux-erofs@lists.ozlabs.org
Cc: LKML <linux-kernel@vger.kernel.org>, Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH 2/2] erofs: address D-cache aliasing
Date: Wed, 9 Jul 2025 21:53:10 +0800 [thread overview]
Message-ID: <da52a0d3-9a3b-4465-bf17-cf2ad8044330@linux.alibaba.com> (raw)
In-Reply-To: <862beb2e-f8a8-468a-a2ed-c8151eabb342@pengutronix.de>
Hi Stefan,
On 2025/7/9 19:25, Stefan Kerkmann wrote:
> Hi Gao, Hi Jan,
>
> On 7/9/25 5:46 AM, Gao Xiang wrote:
>> Flush the D-cache before unlocking folios for compressed inodes, as
>> they are dirtied during decompression.
>>
>> Avoid calling flush_dcache_folio() on every CPU write, since it's more
>> like playing whack-a-mole without real benefit.
>>
>> It has no impact on x86 and arm64/risc-v: on x86, flush_dcache_folio()
>> is a no-op, and on arm64/risc-v, PG_dcache_clean (PG_arch_1) is clear
>> for new page cache folios. However, certain ARM boards are affected,
>> as reported.
>>
>> Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support")
>> Closes: https://lore.kernel.org/r/c1e51e16-6cc6-49d0-a63e-4e9ff6c4dd53@pengutronix.de
>> Closes: https://lore.kernel.org/r/38d43fae-1182-4155-9c5b-ffc7382d9917@siemens.com
>> Cc: Jan Kiszka <jan.kiszka@siemens.com>
>> Cc: Stefan Kerkmann <s.kerkmann@pengutronix.de>
>> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
>> ---
>> Hi Jan and Stefan,
>>
>> if possible, please help test this patch on your arm devices,
>> many thanks! I will submit this later but if it's urgent you
>> could also apply this locally in advance.
>>
>
> Thank you for the fix and great work, it solved the issue I was seeing locally!
Thanks for your confirmation too!
Thanks,
Gao Xiang
prev parent reply other threads:[~2025-07-09 13:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 3:46 [PATCH 1/2] erofs: use memcpy_to_folio() to replace copy_to_iter() Gao Xiang
2025-07-09 3:46 ` [PATCH 2/2] erofs: address D-cache aliasing Gao Xiang
2025-07-09 5:50 ` Jan Kiszka
2025-07-09 5:55 ` Gao Xiang
2025-07-09 11:25 ` Stefan Kerkmann
2025-07-09 13:53 ` Gao Xiang [this message]
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=da52a0d3-9a3b-4465-bf17-cf2ad8044330@linux.alibaba.com \
--to=hsiangkao@linux.alibaba.com \
--cc=jan.kiszka@siemens.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=s.kerkmann@pengutronix.de \
/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®