diff options
author | Ming Lei <[email protected]> | 2019-02-15 19:13:12 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-02-15 08:40:11 -0700 |
commit | dcebd755926b0f39dd1e3ef75bd3b46943400df0 (patch) | |
tree | 922b2370aa43de5b73e1b4f57c4267fd48b84de9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d18d91740ad22e9d7998884c4d80523d0ba95ddf (diff) |
block: use bio_for_each_bvec() to compute multi-page bvec count
First it is more efficient to use bio_for_each_bvec() in both
blk_bio_segment_split() and __blk_recalc_rq_segments() to compute how
many multi-page bvecs there are in the bio.
Secondly once bio_for_each_bvec() is used, the bvec may need to be
splitted because its length can be very longer than max segment size,
so we have to split the big bvec into several segments.
Thirdly when splitting multi-page bvec into segments, the max segment
limit may be reached, so the bio split need to be considered under
this situation too.
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Omar Sandoval <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions