diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2020-10-28 10:25:36 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-28 16:51:02 +0300 |
commit | 4977d121bc9bc5138d4d48b85469123001859573 (patch) | |
tree | 5b6040a3996fb61fa60e053e7800589cc5c3f72b /scripts/bpf_helpers_doc.py | |
parent | 35bc10b2eafbb701064b94f283b77c54d3304842 (diff) | |
download | linux-4977d121bc9bc5138d4d48b85469123001859573.tar.xz |
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: stable@vger.kernel.org # 5.8+
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions