2 dnl # 2.6.30 API change
3 dnl # The blk_queue_io_opt() function was added to indicate the optimal
4 dnl # I/O size for the device.
6 AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_IO_OPT], [
7 AC_MSG_CHECKING([whether blk_queue_io_opt() is available])
8 tmp_flags="$EXTRA_KCFLAGS"
9 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
10 ZFS_LINUX_TRY_COMPILE([
11 #include <linux/blkdev.h>
13 struct request_queue *q = NULL;
15 (void) blk_queue_io_opt(q, opt);
18 AC_DEFINE(HAVE_BLK_QUEUE_IO_OPT, 1,
19 [blk_queue_io_opt() is available])
23 EXTRA_KCFLAGS="$tmp_flags"