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

Reorder HAVE_BIO_RW_* checks #4959

Closed
wants to merge 1 commit into from

Conversation

behlendorf
Copy link
Contributor

The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros. Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case. This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf [email protected]
Issue #4951

@behlendorf
Copy link
Contributor Author

@tuxoko due to the recent flakeyness of the buildbot a regression slipped in from #4951. The wrong interface was being used 2.6.32 kernels resulting in a panic with zconfig.sh test 5. This change reorders the checks (similar to how they were before) to ensure the right interface is used. Can you review this.

@tuxoko
Copy link
Contributor

tuxoko commented Aug 11, 2016

Can you add a comment in the code so it won't happen again? Otherwise LGTM.

Is there a way we can get panic stack trace out of buildbot?

The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#4951
@behlendorf behlendorf force-pushed the linux-4.8-compat-fix branch from e1441fd to 0161729 Compare August 11, 2016 22:47
@behlendorf
Copy link
Contributor Author

Good, idea. Updated with a comment.

Is there a way we can get panic stack trace out of buildbot?

In theory yes, but in practice I haven't found a 100% reliable way to do this which is frustrating.

DeHackEd pushed a commit to DeHackEd/zfs that referenced this pull request Oct 19, 2016
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#4951
Closes openzfs#4959
DeHackEd pushed a commit to DeHackEd/zfs that referenced this pull request Oct 29, 2016
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#4951
Closes openzfs#4959
behlendorf added a commit to behlendorf/zfs that referenced this pull request Feb 2, 2017
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#4951
Closes openzfs#4959
behlendorf added a commit to behlendorf/zfs that referenced this pull request Feb 2, 2017
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#4951
Closes openzfs#4959
behlendorf added a commit to behlendorf/zfs that referenced this pull request Feb 2, 2017
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes openzfs#4951
Closes openzfs#4959
Requires-builders: style
behlendorf added a commit that referenced this pull request Feb 3, 2017
The HAVE_BIO_RW_* #ifdef's must appear before REQ_* #ifdef's
in the bio_is_flush() and bio_is_discard() macros.  Linux 2.6.32
era kernels defined both of values and the HAVE_BIO_RW_* must be
used in this case.  This resulted in a panic in zconfig test 5.

Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #4951
Closes #4959
@behlendorf behlendorf deleted the linux-4.8-compat-fix branch May 1, 2017 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants