]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
uclient: tweak readahead logic
authorSage Weil <sage@newdream.net>
Thu, 3 Sep 2009 23:35:07 +0000 (16:35 -0700)
committerSage Weil <sage@newdream.net>
Thu, 3 Sep 2009 23:35:18 +0000 (16:35 -0700)
commit43426ddc367bfcad4ea67b7a96e838d5fc7af01f
treefe6f757a6bb1850679b6d69005a044cb05a7421a
parent6f7bbdfe8047ef3fd54889dac05e36a90f088314
uclient: tweak readahead logic

Trim readahead extent to align to a stripe unit boundary,
always.  This let's us, say, set the max to be 1 stripe unit,
and then we never read beyond the current su.

Only initiate readahead if it's > len.  Otherwise we just
make things slower by breaking the read into two ops!
src/client/Client.cc