aboutsummaryrefslogtreecommitdiffstats
path: root/tools/io_uring
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2019-04-08 19:02:38 +0800
committerJens Axboe <axboe@kernel.dk>2019-04-08 08:19:41 -0600
commit1200e07f3ad4b9d976cf2fff3a0c3d9a1faecb3e (patch)
treec46db66fbb2979d69b7fe6ad6f9065ff9312e0a5 /tools/io_uring
parentLinux 5.1-rc4 (diff)
downloadlinux-dev-1200e07f3ad4b9d976cf2fff3a0c3d9a1faecb3e.tar.xz
linux-dev-1200e07f3ad4b9d976cf2fff3a0c3d9a1faecb3e.zip
block: don't use for-inside-for in bio_for_each_segment_all
Commit 6dc4f100c175 ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec") changes bio_for_each_segment_all() to use for-inside-for. This way breaks all bio_for_each_segment_all() call with error out branch via 'break', since now 'break' can only break from the inner loop. Fixes this issue by implementing bio_for_each_segment_all() via single 'for' loop, and now the logic is very similar with normal bvec iterator. Cc: Qu Wenruo <quwenruo.btrfs@gmx.com> Cc: linux-btrfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org Cc: Omar Sandoval <osandov@fb.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reported-and-Tested-by: Qu Wenruo <quwenruo.btrfs@gmx.com> Fixes: 6dc4f100c175 ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec") Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/io_uring')
0 files changed, 0 insertions, 0 deletions