]> granicus.if.org Git - zfs/commit
Reorder HAVE_BIO_RW_* checks
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Aug 2016 21:58:13 +0000 (14:58 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Aug 2016 16:17:40 +0000 (09:17 -0700)
commit6eb73b00466b4d72c9e0f0df8e000ef68b757c99
tree47035436b7577fe3195d643d273c38daadaf0b62
parent169ab07cc8b7417c4a93b4496ef4a11e049b5cdc
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
include/linux/blkdev_compat.h