From: Chris Mason Date: Wed, 3 Feb 2010 18:18:45 +0000 (+0000) Subject: Btrfs: finish read pages in the order they are submitted X-Git-Tag: v2.6.34-rc2~21^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4125bf761cd0786e1163e024c7c809ce2cc625bc;p=pandora-kernel.git Btrfs: finish read pages in the order they are submitted The endio is done at reverse order of bio vectors. That means for a sequential read, the page first submitted will finish last in a bio. Considering we will do checksum (making cache hot) for every page, this does introduce delay (and chance to squeeze cache used soon) for pages submitted at the begining. I don't observe obvious performance difference with below patch at my simple test, but seems more natural to finish read in the order they are submitted. Signed-off-by: Shaohua Li Signed-off-by: Chris Mason --- Reading git-diff-tree failed