]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: block: Add missing cache flushes
authorKevin Cernekee <cernekee@chromium.org>
Wed, 22 Apr 2015 12:30:53 +0000 (09:30 -0300)
committerRichard Weinberger <richard@nod.at>
Wed, 6 May 2015 20:52:22 +0000 (22:52 +0200)
commitf31378e59d11e07ee30ab529f2d002a622eba7f6
treef6e9baa451e99ed768ded0847d9005605ea2a4c9
parent194b7115c289879d9d371e5ad3e7d18c3489ecbf
UBI: block: Add missing cache flushes

Block drivers are responsible for calling flush_dcache_page() on each
BIO request. This operation keeps the I$ coherent with the D$ on
architectures that don't have hardware coherency support. Without this
flush, random crashes are seen when executing user programs from an ext4
filesystem backed by a ubiblock device.

This patch is based on the change implemented in commit 0388a0ad9143
("block: add helpers to run flush_dcache_page() against a bio and a
request's pages").

Fixes: 0aea5930944e ("UBI: R/O block driver on top of UBI volumes")
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/block.c