• Tejun Heo's avatar
    swim: clean up request completion paths · e138b4e0
    Tejun Heo authored
    swim curiously tries to update request parameters before calling
    __blk_end_request() when __blk_end_request() will do it anyway and
    unnecessarily checks whether current_nr_sectors is zero right after
    fetching.
    
    Drop unnecessary stuff and use standard block layer mechanisms.
    
    [ Impact: cleanup ]
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Laurent Vivier <Laurent@lvivier.info>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    e138b4e0
swim.c 19.7 KB