Skip to content
  • Tejun Heo's avatar
    bio: always copy back data for copied kernel requests · 4fc981ef
    Tejun Heo authored
    
    
    When a read bio_copy_kern() request fails, the content of the bounce
    buffer is not copied back.  However, as request failure doesn't
    necessarily mean complete failure, the buffer state can be useful.
    This behavior is also inconsistent with the user map counterpart and
    causes the subtle difference between bounced and unbounced IO causes
    confusion.
    
    This patch makes bio_copy_kern_endio() ignore @err and always copy
    back data on request completion.
    
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Cc: Boaz Harrosh <bharrosh@panasas.com>
    Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    4fc981ef