• Tejun Heo's avatar
    hd: clean up request completion paths · e091eb67
    Tejun Heo authored
    hd read/write_intr() functions manually manipulate request to
    incrementally complete it, which block layer already supports.  Simply
    use block layer completion routines instead of manual partial
    completion.
    
    While at it, clear unnecessary elv_next_request() check at the tail of
    read_intr().  This also makes read and write_intr() more consistent.
    
    [ Impact: cleanup ]
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    e091eb67
hd.c 18.7 KB