From: Jens Axboe Date: Thu, 26 Apr 2007 10:53:50 +0000 (+0200) Subject: [PATCH] cfq-iosched: speed up rbtree handling X-Git-Tag: v2.6.22-rc1~1108^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc09e2990fdd96d25fdbb9db6bc9b4c82d9e4a3c;p=pandora-kernel.git [PATCH] cfq-iosched: speed up rbtree handling For cases where the rbtree is mainly used for sorting and min retrieval, a nice speedup of the rbtree code is to maintain a cache of the leftmost node in the tree. Also spotted in the CFS CPU scheduler code. Improved by Alan D. Brunelle by updating the leftmost hint in cfq_rb_first() if it isn't set, instead of only updating it on insert. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed