summaryrefslogtreecommitdiffstats
path: root/zfs_config.h.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-11-10 15:49:40 -0800
committerBrian Behlendorf <[email protected]>2010-11-10 17:00:33 -0800
commit675de5aa379bfceb0258a20c4ccd1414e4798ee6 (patch)
tree241b2262cb0250579b1bd14ab37ac003eef52adc /zfs_config.h.in
parentf4af6bb783b0b7f2a6075cb1c74c225db8a157b2 (diff)
Linux 2.6.36 compat, synchronous bio flag
The name of the flag used to mark a bio as synchronous has changed again in the 2.6.36 kernel due to the unification of the BIO_RW_* and REQ_* flags. The new flag is called REQ_SYNC. To simplify checking this flag I have introduced the vdev_disk_dio_is_sync() helper function. Based on the results of several new autoconf tests it uses the correct mask to check for a synchronous bio. Preferred interface for flagging a synchronous bio: 2.6.12-2.6.29: BIO_RW_SYNC 2.6.30-2.6.35: BIO_RW_SYNCIO 2.6.36-2.6.xx: REQ_SYNC
Diffstat (limited to 'zfs_config.h.in')
-rw-r--r--zfs_config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/zfs_config.h.in b/zfs_config.h.in
index f666d4578..6e0e62390 100644
--- a/zfs_config.h.in
+++ b/zfs_config.h.in
@@ -24,6 +24,9 @@
/* BIO_RW_FAILFAST_* are defined */
#undef HAVE_BIO_RW_FAILFAST_DTD
+/* BIO_RW_SYNC is defined */
+#undef HAVE_BIO_RW_SYNC
+
/* BIO_RW_SYNCIO is defined */
#undef HAVE_BIO_RW_SYNCIO
@@ -96,6 +99,9 @@
/* open_bdev_exclusive() is available */
#undef HAVE_OPEN_BDEV_EXCLUSIVE
+/* REQ_SYNC is defined */
+#undef HAVE_REQ_SYNC
+
/* rq_for_each_segment() is available */
#undef HAVE_RQ_FOR_EACH_SEGMENT