diff options
author | Kevin Cernekee <cernekee@chromium.org> | 2015-04-22 09:30:53 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-06 08:21:09 -0700 |
commit | eb20e69ac83a1e4d764a49bf671e1e2e5dc4c15c (patch) | |
tree | 53c5d5f495fbed297fe84ecb0a18c97e7d0005fe /drivers/pwm/pwm-img.c | |
parent | cb0751cdf54abec60b58004484b84993564cb9be (diff) |
UBI: block: Add missing cache flushes
commit 98fb1ffd8154890d7051750e61ff5548c3ee2ab2 upstream.
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 2d4dc890b5c8
("block: add helpers to run flush_dcache_page() against a bio and a
request's pages").
Fixes: 9d54c8a33eec ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pwm/pwm-img.c')
0 files changed, 0 insertions, 0 deletions