• Jens Axboe's avatar
    cfq-iosched: fix bug with aliased request and cooperation detection · 3ac6c9f8
    Jens Axboe authored
    cfq_prio_tree_lookup() should return the direct match, yet it always
    returns zero. Fix that.
    
    cfq_prio_tree_add() assumes that we don't get a direct match, while
    it is very possible that we do. Using O_DIRECT, you can have different
    cfqq with matching requests, since you don't have the page cache
    to serialize things for you. Fix this bug by only adding the cfqq if
    there isn't an existing match.
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    3ac6c9f8
cfq-iosched.c 63.6 KB