summaryrefslogtreecommitdiff
path: root/block/blk-pm.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2019-02-21 23:43:36 +0800
committerJens Axboe <axboe@kernel.dk>2019-02-21 10:58:44 -0700
commit8f4e80da764ec1ca44c83f3e17dbc9bf0209bccc (patch)
tree15a75d174ed2de167fc9d8ef8802f2545be8b580 /block/blk-pm.c
parent037b2625d898844da99c29362121131161f365a5 (diff)
block: bounce: make sure that bvec table is updated
Block bounce needs to allocate new page for doing IO, and the new page has to be updated to bvec table. Commit 6dc4f100c switches __blk_queue_bounce() to use the new bio_for_each_segment_all() interface. Unfortunately the new bio_for_each_segment_all() can't be used to update bvec table. This patch fixes this issue by retrieving bvec from the table directly, then the new allocated page can be updated to the bio. This way is safe because the cloned bio is single page bvec. Fixes: 6dc4f100c ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec") Cc: Christoph Hellwig <hch@lst.de> Cc: Omar Sandoval <osandov@fb.com> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-pm.c')
0 files changed, 0 insertions, 0 deletions