]> git.baikalelectronics.ru Git - kernel.git/commit
block: bounce: don't access bio->bi_io_vec in copy_to_high_bio_irq
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Dec 2017 12:22:07 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 16:18:00 +0000 (09:18 -0700)
commit43c1cd05f2fce5045f9b4f03f0aea380a8cdb76c
tree93a2f8c318cf22449587d8c3e9a1df6d52a4cc10
parent838d95e157b0cd200d9300bcb5628b023ef0d868
block: bounce: don't access bio->bi_io_vec in copy_to_high_bio_irq

Firstly this patch introduces BVEC_ITER_ALL_INIT for iterating one bio
from start to end.

As we need to support multipage bvecs, don't access bio->bi_io_vec
in copy_to_high_bio_irq(), and just use the standard iterator for that.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bounce.c
include/linux/bvec.h