On 10/28/20 1:25 AM, Naohiro Aota wrote:
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.
Applied, thanks.