HomeFreeBSD

Reorder HAVE_BIO_RW_* checks

Description

Reorder HAVE_BIO_RW_* checks

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 <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #4951
Closes #4959

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Aug 11 2016, 9:58 PM
Parents
rG169ab07cc8b7: OpenZFS 7263 - deeply nested nvlist can overflow stack
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6eb73b00466b: Reorder HAVE_BIO_RW_* checks (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Aug 12 2016, 4:17 PM