2 dnl # 2.6.34 API change
3 dnl # current->bio_tail and current->bio_list were struct bio pointers prior to
4 dnl # Linux 2.6.34. They were refactored into a struct bio_list pointer called
5 dnl # current->bio_list in Linux 2.6.34.
7 AC_DEFUN([ZFS_AC_KERNEL_CURRENT_BIO_TAIL], [
8 AC_MSG_CHECKING([whether current->bio_tail exists])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/sched.h>
12 current->bio_tail = (struct bio **) NULL;
15 AC_DEFINE(HAVE_CURRENT_BIO_TAIL, 1,
16 [current->bio_tail exists])
19 AC_MSG_CHECKING([whether current->bio_list exists])
20 ZFS_LINUX_TRY_COMPILE([
21 #include <linux/sched.h>
23 current->bio_list = (struct bio_list *) NULL;
26 AC_DEFINE(HAVE_CURRENT_BIO_LIST, 1,
27 [current->bio_list exists])
29 AC_MSG_ERROR(no - Please file a bug report at
30 https://github.com/zfsonlinux/zfs/issues/new)