]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlockDevice: disable readahead of fd_buffered
authorSage Weil <sage@redhat.com>
Wed, 13 Jan 2016 18:51:26 +0000 (13:51 -0500)
committerSage Weil <sage@redhat.com>
Wed, 13 Jan 2016 18:51:26 +0000 (13:51 -0500)
commite0a17b935bc519f577bc086268263cffc8946a75
tree3f4b1c35ee131a05c6cd3ce10ee5085113e7178f
parent7202876f02410d53cb6856ff1d0ee0a63f32bc75
os/bluestore/BlockDevice: disable readahead of fd_buffered

Readahead can break our mix of aio/dio and buffered io.  Although the
dio path will invalidate pages before and after initiating the IO, and we
do not issue racing buffered reads, the readahead code might.  That would
result in pages in the page cache that are not coherent with an aio write.

This is easy to reproduce with ceph_test_objectstore's Synthetic case
when bluestore_default_buffered_read=true.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlockDevice.cc