• Jens Axboe's avatar
    [PATCH] noop-iosched: avoid corrupted request merging · 581c1b14
    Jens Axboe authored
    Tejun Heo notes:
    
       "I'm currently debugging this.  The problem is that we are using the
        generic dispatch queue directly in the noop sched and merging is NOT
        allowed on dispatch queues but generic handling of last_merge tries
        to merge requests.  I'm still trying to verify this, so I'll be back
        with results soon."
    
    In the meantime, disable merging for noop by setting REQ_NOMERGE in
    elevator_noop_add_request().
    
    Eventually, we should add a noop_list and do the dispatching like in the
    other io schedulers.  Merging is still beneficial for noop (and it has
    always done it).
    Signed-off-by: default avatarJens Axboe <axboe@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    581c1b14
noop-iosched.c 894 Bytes