• Jens Axboe's avatar
    [PATCH] partial io completion problem · 6c4cd043
    Jens Axboe authored
    There's an issue with bio_uncopy_user() in that it expects ->bv_len to
    be untouched from io submission to io completion, which it wont be for
    some transfer lengths on some hardware. So we end up not copying all the
    data back to user space, not so good. This patch adds a bio_map_data
    local structure to track the io_vec.
    Signed-off-by: default avatarJens Axboe <axboe@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    6c4cd043
bio.c 23.4 KB