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

Fix dirtying vdev config on with RO spa #8085

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

tcaputi
Copy link
Contributor

@tcaputi tcaputi commented Nov 2, 2018

This patch simply corrects an issue where vdev_dtl_reassess()
could attempt to dirty the vdev config even when the spa was
not elligable for writing.

Signed-off-by: Tom Caputi tcaputi@datto.com

How Has This Been Tested?

Observed and verified with ztest.

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:

@tcaputi tcaputi mentioned this pull request Nov 2, 2018
12 tasks
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Nov 2, 2018
@codecov
Copy link

codecov bot commented Nov 3, 2018

Codecov Report

Merging #8085 into master will increase coverage by 0.13%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8085      +/-   ##
==========================================
+ Coverage   78.44%   78.57%   +0.13%     
==========================================
  Files         381      377       -4     
  Lines      114550   114518      -32     
==========================================
+ Hits        89854    89988     +134     
+ Misses      24696    24530     -166
Flag Coverage Δ
#kernel 78.77% <100%> (+0.04%) ⬆️
#user 67.46% <100%> (+0.3%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9569292...30d8adc. Read the comment docs.

@behlendorf behlendorf requested a review from ahrens November 5, 2018 17:17
This patch simply corrects an issue where vdev_dtl_reassess()
could attempt to dirty the vdev config even when the spa was
not elligable for writing.

Signed-off-by: Tom Caputi <tcaputi@datto.com>
@tcaputi
Copy link
Contributor Author

tcaputi commented Nov 7, 2018

@ahrens addressed your comment

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Nov 7, 2018
@behlendorf behlendorf merged commit fde25c0 into openzfs:master Nov 7, 2018
GregorKopka pushed a commit to GregorKopka/zfs that referenced this pull request Jan 7, 2019
This patch simply corrects an issue where vdev_dtl_reassess()
could attempt to dirty the vdev config even when the spa was
not elligable for writing.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes openzfs#8085
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.

3 participants