diff options
author | Naohiro Aota <[email protected]> | 2020-10-28 16:25:36 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-10-28 07:51:02 -0600 |
commit | 4977d121bc9bc5138d4d48b85469123001859573 (patch) | |
tree | 5b6040a3996fb61fa60e053e7800589cc5c3f72b /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 35bc10b2eafbb701064b94f283b77c54d3304842 (diff) |
block: advance iov_iter on bio_add_hw_page failure
When the bio's size reaches max_append_sectors, bio_add_hw_page returns
0 then __bio_iov_append_get_pages returns -EINVAL. This is an expected
result of building a small enough bio not to be split in the IO path.
However, iov_iter is not advanced in this case, causing the same pages
are filled for the bio again and again.
Fix the case by properly advancing the iov_iter for already processed
pages.
Fixes: 0512a75b98f8 ("block: Introduce REQ_OP_ZONE_APPEND")
Cc: [email protected] # 5.8+
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions