Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should mention that the pool will be suspended in this message. This will help connect the dots if the system does end up panicking due to the failure mode.
How about something like
MMP writes to pool 'name' have not succeeded in over Xs. The pool will be suspended.
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, regardless of whether the system panics or not, zio_suspend() will emit a message that the pool is being suspended. But I can add what you suggest to the new message if that's what you want.
I'm not sure how to address the style check failure. Running 'make checkstyle' locally passes. The errors listed http://build.zfsonlinux.org/builders/Ubuntu%2017.10%20x86_64%20%28STYLE%29/builds/1998/steps/shell_2/logs/stdio don't seem to have anything to do with this change. Any hints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jhammond-intel I think this makes sense as a quick fix. Longer term I think it would be nice to pass a reason to
zio_suspend()
so it can print a more descriptive error message.Go ahead and ignore the style check failures for this one. They're not your fault. I updated the VM running the checks last week and pulled in a new version of
shellcheck
which appears to be upset about new issue which haven't yet been addressed/suppressed. See #7040 (which still needs work).