]> git.baikalelectronics.ru Git - kernel.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>
Wed, 3 Jul 2013 22:32:37 +0000 (15:32 -0700)
commiteae4870caf004177a149562af56f2c9b083a9fa6
tree7dac549a47e7263d68d7351d38cebb7b3a861e35
parente84d0e4fba0426338643a4bf0004092567fbfcf4
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