]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: flush dcache after zeroing page data
authorAlex Elder <elder@inktank.com>
Thu, 23 May 2013 01:54:25 +0000 (20:54 -0500)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 15:46:21 +0000 (08:46 -0700)
commit51ab1a67e08e0e4eefe80a10ae3507dfbf7894c6
treeb77462a3606c87cd5daf71c87c25b50a637223c2
parent5a1a7dbc01ec0f267bb1a3f38828f8e104a294e2
rbd: flush dcache after zeroing page data

Neither zero_bio_chain() nor zero_pages() contains a call to flush
caches after zeroing a portion of a page.  This can cause problems
on architectures that have caches that allow virtual address
aliasing.

This resolves:
    http://tracker.ceph.com/issues/4777

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c