2 dnl # Preferred interface for flagging a synchronous bio:
3 dnl # 2.6.12-2.6.29: BIO_RW_SYNC
4 dnl # 2.6.30-2.6.35: BIO_RW_SYNCIO
5 dnl # 2.6.36-2.6.xx: REQ_SYNC
7 AC_DEFUN([ZFS_AC_KERNEL_BIO_RW_SYNC], [
8 AC_MSG_CHECKING([whether BIO_RW_SYNC is defined])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/bio.h>
16 AC_DEFINE(HAVE_BIO_RW_SYNC, 1, [BIO_RW_SYNC is defined])
22 AC_DEFUN([ZFS_AC_KERNEL_BIO_RW_SYNCIO], [
23 AC_MSG_CHECKING([whether BIO_RW_SYNCIO is defined])
24 ZFS_LINUX_TRY_COMPILE([
25 #include <linux/bio.h>
28 flags = BIO_RW_SYNCIO;
31 AC_DEFINE(HAVE_BIO_RW_SYNCIO, 1, [BIO_RW_SYNCIO is defined])
37 AC_DEFUN([ZFS_AC_KERNEL_REQ_SYNC], [
38 AC_MSG_CHECKING([whether REQ_SYNC is defined])
39 ZFS_LINUX_TRY_COMPILE([
40 #include <linux/bio.h>
46 AC_DEFINE(HAVE_REQ_SYNC, 1, [REQ_SYNC is defined])