From: Alexey Dobriyan <adobriyan@gmail.com>
To: bcrl@kvack.org, akpm@linux-foundation.org
Cc: linux-aio@kvack.org, linux-kernel@vger.kernel.org
Subject: [PATCH] aio: add missing dcache flush
Date: Thu, 6 May 2021 23:01:04 +0300 [thread overview]
Message-ID: <YJRLAPfYuNaCWq6T@localhost.localdomain> (raw)
Ring page is mapped by kernel and updated so dcache must be flushed.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
Not tested but the usage looks fishy.
fs/aio.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -653,6 +653,7 @@ static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm)
ring = kmap_atomic(ctx->ring_pages[0]);
ring->id = ctx->id;
kunmap_atomic(ring);
+ flush_dcache_page(ctx->ring_pages[0]);
return 0;
}
next reply other threads:[~2021-05-06 20:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-06 20:01 Alexey Dobriyan [this message]
2021-05-19 18:40 ` [PATCH] aio: add missing dcache flush Jeff Moyer
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=YJRLAPfYuNaCWq6T@localhost.localdomain \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bcrl@kvack.org \
--cc=linux-aio@kvack.org \
--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;
as well as URLs for NNTP newsgroup(s).