• Borislav Petkov's avatar
    ide-atapi: switch to blk_rq_bytes() on do_request() path · dfb7e621
    Borislav Petkov authored
    After the recent struct request cleanups, blk_rq_bytes() is guaranteed
    to be valid and is the current total length of the rq's bio. Use that
    instead of pc->req_xfer in the do_request() path after the command has
    been queued
    The remaining usage of pc->req_xfer now is only until we map the rq to a
    While at it:
    - remove local caching of rq completion length in ide_tape_issue_pc()
    Signed-off-by: default avatarBorislav Petkov <petkovbb@gmail.com>
ide-tape.c 55.4 KB