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

FreeBSD: zvol_os: Use SET_ERROR more judiciously #11146

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

ghost
Copy link

@ghost ghost commented Nov 2, 2020

Motivation and Context

Description

SET_ERROR is useful to trace errors, so use it where the errors occur
rather than factored out to the end of a function.

How Has This Been Tested?

We have had this in the TrueNAS 12 diff for a few months now (I forgot to upstream it sooner).

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)
  • Documentation (a change to man pages or other documentation)

Checklist:

SET_ERROR is useful to trace errors, so use it where the errors occur
rather than factored out to the end of a function.

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
@ghost ghost added the Status: Code Review Needed Ready for review and testing label Nov 2, 2020
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Nov 3, 2020
@behlendorf behlendorf merged commit 181b2ad into openzfs:master Nov 3, 2020
@ghost ghost deleted the zvol_os-errors branch November 3, 2020 17:33
behlendorf pushed a commit that referenced this pull request Nov 3, 2020
SET_ERROR is useful to trace errors, so use it where the errors occur
rather than factored out to the end of a function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11146
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
SET_ERROR is useful to trace errors, so use it where the errors occur
rather than factored out to the end of a function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes openzfs#11146
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
SET_ERROR is useful to trace errors, so use it where the errors occur
rather than factored out to the end of a function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes openzfs#11146
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.

1 participant