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

RFC/WIP: Revert Consolidate arc_buf allocation checks #12227

Merged
merged 3 commits into from
Jun 23, 2021

Conversation

aerusso
Copy link
Contributor

@aerusso aerusso commented Jun 11, 2021

Motivation and Context

The discussion in #11531 suggests that 13fac09 may be implicated in that bug.

I would like comments on the safety of revert the aforementioned commit.

Description

Because 10b3c7f also touches the same code, this patch set carefully reverts 10b3c7f (limited to module/zfs/dbuf.c), then actually reverts 13fac09, and then finally reverts the first commit.

How Has This Been Tested?

It passes the ZTS when rebased on 2.0.4 and the MR for 2.0.5.

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:

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Jun 11, 2021
@behlendorf
Copy link
Contributor

I would like comments on the safety of revert the aforementioned commit.

This revert should be safe and I think doing so would be a good idea. This isn't a change we need, and nothing has really fundamentally changed in the way this area of the code was intended to work. The only wrinkle with reverting this you've already addressed and that was the zstd conflict. Thanks for keeping those patches separate at least for the moment since it made it easier to verify it was a clean revert. The minor cstyle error will need to be sorted but aside from that this functionally looks good.

@behlendorf behlendorf added Status: Revision Needed Changes are required for the PR to be accepted and removed Status: Code Review Needed Ready for review and testing labels Jun 14, 2021
@behlendorf behlendorf self-assigned this Jun 14, 2021
@aerusso
Copy link
Contributor Author

aerusso commented Jun 16, 2021

Great! Do you want me to squash these, or just add more discussion in the commits (and rebase)?

@behlendorf
Copy link
Contributor

@aerusso why don't we keep them split up for now. Can you just update your top commit to resolve the csyle warning it introduced and update the PR. I'll see about rounding up some more reviewers. When we merge this I can squash everything.

aerusso added 2 commits June 15, 2021 18:53
In preparation for reverting 13fac09, we partially revert 10b3c7f,
within dbuf_alloc_arcbuf_from_arcbuf, which otherwise would conflict.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
This reverts commit 13fac09.

Per the discussion in openzfs#11531, the reverted commit---which intended only
to be a cleanup commit---introduced a subtle, unintended change in
behavior.

Suggested-by: @chrisrd
Suggested-by: robn@despairlabs.com
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
@aerusso aerusso force-pushed the pulls/revert-consolidate-arcbuf-2 branch from eba0e14 to a87bc85 Compare June 16, 2021 01:07
This commit reverts the partial reversion of 10b3c7f, transposed to
account for the un-consolidation of dbuf_alloc_arcbuf_from_arcbuf.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
@aerusso aerusso force-pushed the pulls/revert-consolidate-arcbuf-2 branch from a87bc85 to ad96131 Compare June 16, 2021 01:14
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Revision Needed Changes are required for the PR to be accepted labels Jun 23, 2021
@behlendorf behlendorf merged commit a81b812 into openzfs:master Jun 23, 2021
behlendorf pushed a commit that referenced this pull request Jun 24, 2021
This reverts commit 13fac09.

Per the discussion in #11531, the reverted commit---which intended only
to be a cleanup commit---introduced a subtle, unintended change in
behavior.

Care was taken to partially revert and then reapply 10b3c7f
which would otherwise have caused a conflict.  These changes were
squashed in to this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Suggested-by: @chrisrd
Suggested-by: robn@despairlabs.com
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #11531 
Closes #12227
aerusso added a commit to aerusso/zfs that referenced this pull request Jul 10, 2021
This reverts commit 13fac09.

Per the discussion in openzfs#11531, the reverted commit---which intended only
to be a cleanup commit---introduced a subtle, unintended change in
behavior.

Care was taken to partially revert and then reapply 10b3c7f
which would otherwise have caused a conflict.  These changes were
squashed in to this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Suggested-by: @chrisrd
Suggested-by: robn@despairlabs.com
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes openzfs#11531
Closes openzfs#12227
tonyhutter pushed a commit that referenced this pull request Aug 31, 2021
This reverts commit 13fac09.

Per the discussion in #11531, the reverted commit---which intended only
to be a cleanup commit---introduced a subtle, unintended change in
behavior.

Care was taken to partially revert and then reapply 10b3c7f
which would otherwise have caused a conflict.  These changes were
squashed in to this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Suggested-by: @chrisrd
Suggested-by: robn@despairlabs.com
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #11531
Closes #12227
tonyhutter pushed a commit that referenced this pull request Sep 22, 2021
This reverts commit 13fac09.

Per the discussion in #11531, the reverted commit---which intended only
to be a cleanup commit---introduced a subtle, unintended change in
behavior.

Care was taken to partially revert and then reapply 10b3c7f
which would otherwise have caused a conflict.  These changes were
squashed in to this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Suggested-by: @chrisrd
Suggested-by: robn@despairlabs.com
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #11531
Closes #12227
@aerusso aerusso deleted the pulls/revert-consolidate-arcbuf-2 branch January 7, 2023 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants