Thread (4 messages) 4 messages, 3 authors, 2021-03-31

Re: [PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

From: Greentime Hu <hidden>
Date: 2021-03-31 07:32:18
Also in: lkml

Greentime Hu [off-list ref] 於 2021年3月31日 週三 下午3:30寫道:
Matthew Wilcox [off-list ref] 於 2021年3月31日 週三 上午2:14寫道:
quoted
On Tue, Mar 30, 2021 at 08:51:26PM +0300, Mike Rapoport wrote:
quoted
From: Mike Rapoport <redacted>

Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache")
updated flush_dcache_page implementations on several architectures to use
page_mapping_file() in order to avoid races between page_mapping() and
swapoff().

This update missed arch/nds32 and there is a possibility of a race there.

Replace page_mapping() with page_mapping_file() in nds32 implementation of
flush_dcache_page().

Fixes: cb9f753a3731 ("mm: fix races between swapoff and flush dcache")
Signed-off-by: Mike Rapoport <redacted>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Greentiime Hu <redacted>
Typo.
Acked-by: Greentime Hu <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help