• Jens Axboe's avatar
    [PATCH] cfq-iosched: speed up rbtree handling · cc09e299
    Jens Axboe authored
    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 <Alan.Brunelle@hp.com> by updating the
    leftmost hint in cfq_rb_first() if it isn't set, instead of only
    updating it on insert.
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    cc09e299
cfq-iosched.c 53.5 KB