]> git.hungrycats.org Git - linux/commit
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page
authorSimon Baatz <gmbnomis@gmail.com>
Mon, 10 Jun 2013 20:10:12 +0000 (21:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2013 17:59:00 +0000 (10:59 -0700)
commit5fca91fe312daac06f00bab90449f766e445731a
treead2384d9825b5d752ceef7b2c10df38de6773bb6
parent8a987612af206835d6664c9c1389cee4a485b389
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page

commit 1bc39742aab09248169ef9d3727c9def3528b3f3 upstream.

Commit f8b63c1 made flush_kernel_dcache_page a no-op assuming that
the pages it needs to handle are kernel mapped only.  However, for
example when doing direct I/O, pages with user space mappings may
occur.

Thus, continue to do lazy flushing if there are no user space
mappings.  Otherwise, flush the kernel cache lines directly.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/cacheflush.h
arch/arm/mm/flush.c