summaryrefslogtreecommitdiff
path: root/net/sunrpc
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-02-19 11:35:38 +0100
committerJens Axboe <jens.axboe@oracle.com>2008-02-19 11:35:38 +0100
commit40b01b9bbdf51ae543a04744283bf2d56c4a6afa (patch)
tree0f81015c01834b97fdb5646a63c3fe1a24936d81 /net/sunrpc
parent56c819df77f96c3fc0c2a979e12b478403728790 (diff)
downloadlinux-3.10-40b01b9bbdf51ae543a04744283bf2d56c4a6afa.tar.gz
linux-3.10-40b01b9bbdf51ae543a04744283bf2d56c4a6afa.tar.bz2
linux-3.10-40b01b9bbdf51ae543a04744283bf2d56c4a6afa.zip
block: update bio according to DMA alignment padding
DMA start address and transfer size alignment for PC requests are achieved using bio_copy_user() instead of bio_map_user(). This works because bio_copy_user() always uses full pages and block DMA alignment isn't allowed to go over PAGE_SIZE. However, the implementation didn't update the last bio of the request to make this padding visible to lower layers. This patch makes blk_rq_map_user() extend the last bio such that it includes the padding area and the size of area pointed to by the request is properly aligned. Signed-off-by: Tejun Heo <htejun@gmail.com> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions