Add -p switch to "zpool get"
[zfs.git] / config / kernel-blk-fetch-request.m4
1 dnl #
2 dnl # 2.6.31 API change
3 dnl # Request queue peek/retrieval interface cleanup, the blk_fetch_request()
4 dnl # function replaces the elv_next_request() and blk_fetch_request()
5 dnl # functions.  The updated blk_fetch_request() function returns the
6 dnl # next available request and removed it from the request queue.
7 dnl #
8 AC_DEFUN([ZFS_AC_KERNEL_BLK_FETCH_REQUEST], [
9         AC_MSG_CHECKING([whether blk_fetch_request() is available])
10         tmp_flags="$EXTRA_KCFLAGS"
11         EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12         ZFS_LINUX_TRY_COMPILE([
13                 #include <linux/blkdev.h>
14         ],[
15                 struct request_queue *q = NULL;
16                 (void) blk_fetch_request(q);
17         ],[
18                 AC_MSG_RESULT(yes)
19                 AC_DEFINE(HAVE_BLK_FETCH_REQUEST, 1,
20                           [blk_fetch_request() is available])
21         ],[
22                 AC_MSG_RESULT(no)
23         ])
24         EXTRA_KCFLAGS="$tmp_flags"
25 ])