Thread (19 messages) 19 messages, 5 authors, 2016-12-20

Re: [PATCH 2/6] mm: Invalidate DAX radix tree entries only if appropriate

From: Johannes Weiner <hannes@cmpxchg.org>
Date: 2016-12-12 17:50:55
Also in: linux-fsdevel, linux-mm

On Mon, Dec 12, 2016 at 05:47:04PM +0100, Jan Kara wrote:
Currently invalidate_inode_pages2_range() and invalidate_mapping_pages()
just delete all exceptional radix tree entries they find. For DAX this
is not desirable as we track cache dirtiness in these entries and when
they are evicted, we may not flush caches although it is necessary. This
can for example manifest when we write to the same block both via mmap
and via write(2) (to different offsets) and fsync(2) then does not
properly flush CPU caches when modification via write(2) was the last
one.

Create appropriate DAX functions to handle invalidation of DAX entries
for invalidate_inode_pages2_range() and invalidate_mapping_pages() and
wire them up into the corresponding mm functions.

Reviewed-by: Ross Zwisler <redacted>
Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help