Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport] Remove iov_iter_advance() for iter_write #12178

Merged
merged 1 commit into from
Jun 2, 2021
Merged

[backport] Remove iov_iter_advance() for iter_write #12178

merged 1 commit into from
Jun 2, 2021

Conversation

jonathonf
Copy link
Contributor

Motivation and Context

This PR cherry-picks 3f81aba to backport to the zfs-2.0.5-staging branch; this will address #12041 that is being experienced by people running ZFS 2.0.4 with the 5.12 kernel compat patches.

Description

Backport 3f81aba :


The additional iter advance is incorrect, as copy_from_iter() has
already done the right thing. This will result in the following
warning being printed to the console as of the 5.12 kernel.

Attempted to advance past end of bvec iter

This change should have been included with #11378 when a
similar change was made on the read side.

Suggested-by: @siebenmann
Reviewed-by: Brian Behlendorf behlendorf1@llnl.gov
Signed-off-by: Rich Ercolani rincebrain@gmail.com
Issue #11378
Closes #12041
Closes #12155


How Has This Been Tested?

Tested on an Arch Linux system with kernel 5.12.8.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

The additional iter advance is incorrect, as copy_from_iter() has
already done the right thing.  This will result in the following
warning being printed to the console as of the 5.12 kernel.

    Attempted to advance past end of bvec iter

This change should have been included with #11378 when a
similar change was made on the read side.

Suggested-by: @siebenmann
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Issue #11378
Closes #12041
Closes #12155
(cherry picked from commit 3f81aba)
Signed-off-by: Jonathon Fernyhough <jonathon@m2x.dev>
jonathonf added a commit to jonathonf/pkgbuilds that referenced this pull request Jun 1, 2021
This includes two further approved backport PRs for the zfs-2.0.5-staging branch
(openzfs/zfs#12139, openzfs/zfs#12141)
and switches compat patches from 12009 to the merged commits.

It also includes backported bugfix openzfs/zfs#12178 .
jonathonf added a commit to jonathonf/pkgbuilds that referenced this pull request Jun 1, 2021
This includes two further approved backport PRs for the zfs-2.0.5-staging branch
(openzfs/zfs#12139, openzfs/zfs#12141)
and switches compat patches from 12009 to the merged commits.

It also includes backported bugfix openzfs/zfs#12178 .
@tonyhutter tonyhutter merged commit 3e0bc63 into openzfs:zfs-2.0.5-staging Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants