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

Revert "Report holes when there are only metadata changes" #8834

Merged
merged 1 commit into from
May 31, 2019

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Issue #8816.

Description

This reverts commit ec4f9b8 which introduced a narrow race which can lead to lseek(, SEEK_DATA) incorrectly returning ENXIO. Resolve the issue by revering this change to restore the previous behavior which depends solely on checking the dirty list.

How Has This Been Tested?

The test case provided in #8816 was able to consistently reproduce this issue. After reverting the commit the problem could no longer be reproduced. Additionally, the issue was first observed when running portage on gentoo and reverting the commit resolved the issue as expected.

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:

This reverts commit ec4f9b8 which introduced a narrow race which
can lead to lseek(, SEEK_DATA) incorrectly returning ENXIO.  Resolve
the issue by revering this change to restore the previous behavior
which depends solely on checking the dirty list.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
@codecov
Copy link

codecov bot commented May 30, 2019

Codecov Report

Merging #8834 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8834      +/-   ##
==========================================
- Coverage    78.7%   78.65%   -0.05%     
==========================================
  Files         382      382              
  Lines      117802   117792      -10     
==========================================
- Hits        92712    92651      -61     
- Misses      25090    25141      +51
Flag Coverage Δ
#kernel 79.35% <ø> (+0.11%) ⬆️
#user 67.31% <ø> (-0.08%) ⬇️

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 1e724f4...556b55c. Read the comment docs.

Copy link
Contributor

@ofaaland ofaaland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ikozhukhov ikozhukhov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have issues on DilOS with it and reverted:
https://bitbucket.org/dilos/dilos-illumos/commits/818bb9a69906476487c4acd0bac308152e8e0fc1
i thought it was my fault with port to dilos.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels May 31, 2019
@behlendorf behlendorf merged commit 2531ce3 into openzfs:master May 31, 2019
behlendorf added a commit that referenced this pull request Jun 7, 2019
This reverts commit ec4f9b8 which introduced a narrow race which
can lead to lseek(, SEEK_DATA) incorrectly returning ENXIO.  Resolve
the issue by revering this change to restore the previous behavior
which depends solely on checking the dirty list.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8816 
Closes #8834
@behlendorf behlendorf deleted the issue-8816 branch April 19, 2021 19:26
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