Improve ZVOL queue behavior.
The Linux block device queue subsystem exposes a number of configurable settings described in Linux block/blk-settings.c. The defaults for these settings are tuned for hard drives, and are not optimized for ZVOLs. Proper configuration of these options would allow upper layers (I/O scheduler) to take better decisions about write merging and ordering. Detailed rationale: - max_hw_sectors is set to unlimited (UINT_MAX). zvol_write() is able to handle writes of any size, so there's no reason to impose a limit. Let the upper layer decide. - max_segments and max_segment_size are set to unlimited. zvol_write() will copy the requests' contents into a dbuf anyway, so the number and size of the segments are irrelevant. Let the upper layer decide. - physical_block_size and io_opt are set to the ZVOL's block size. This has the potential to somewhat alleviate issue #361 for ZVOLs, by warning the upper layers that writes smaller than the volume's block size will be slow. - The NONROT flag is set to indicate this isn't a rotational device. Although the backing zpool might be composed of rotational devices, the resulting ZVOL often doesn't exhibit the same behavior due to the COW mechanisms used by ZFS. Setting this flag will prevent upper layers from making useless decisions (such as reordering writes) based on incorrect assumptions about the behavior of the ZVOL. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
b18019d2d8
commit
34037afe24
|
@ -73,6 +73,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -53,6 +53,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
dnl #
|
||||
dnl # 2.6.30 API change
|
||||
dnl # The blk_queue_io_opt() function was added to indicate the optimal
|
||||
dnl # I/O size for the device.
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_IO_OPT], [
|
||||
AC_MSG_CHECKING([whether blk_queue_io_opt() is available])
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/blkdev.h>
|
||||
],[
|
||||
struct request_queue *q = NULL;
|
||||
unsigned int opt = 1;
|
||||
(void) blk_queue_io_opt(q, opt);
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_BLK_QUEUE_IO_OPT, 1,
|
||||
[blk_queue_io_opt() is available])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
])
|
|
@ -0,0 +1,22 @@
|
|||
dnl #
|
||||
dnl # 2.6.34 API change
|
||||
dnl # blk_queue_max_hw_sectors() replaces blk_queue_max_sectors().
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_MAX_HW_SECTORS], [
|
||||
AC_MSG_CHECKING([whether blk_queue_max_hw_sectors() is available])
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/blkdev.h>
|
||||
],[
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_BLK_QUEUE_MAX_HW_SECTORS, 1,
|
||||
[blk_queue_max_hw_sectors() is available])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
])
|
|
@ -0,0 +1,23 @@
|
|||
dnl #
|
||||
dnl # 2.6.34 API change
|
||||
dnl # blk_queue_max_segments() consolidates blk_queue_max_hw_segments()
|
||||
dnl # and blk_queue_max_phys_segments().
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_MAX_SEGMENTS], [
|
||||
AC_MSG_CHECKING([whether blk_queue_max_segments() is available])
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/blkdev.h>
|
||||
],[
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_BLK_QUEUE_MAX_SEGMENTS, 1,
|
||||
[blk_queue_max_segments() is available])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
])
|
|
@ -0,0 +1,25 @@
|
|||
dnl #
|
||||
dnl # 2.6.27 API change
|
||||
dnl # The blk_queue_nonrot() function and QUEUE_FLAG_NONROT flag were
|
||||
dnl # added so non-rotational devices could be identified. These devices
|
||||
dnl # have no seek time which the higher level elevator uses to optimize
|
||||
dnl # how the I/O issued to the device.
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_NONROT], [
|
||||
AC_MSG_CHECKING([whether blk_queue_nonrot() is available])
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/blkdev.h>
|
||||
],[
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_nonrot(q);
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_BLK_QUEUE_NONROT, 1,
|
||||
[blk_queue_nonrot() is available])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
])
|
|
@ -0,0 +1,25 @@
|
|||
dnl #
|
||||
dnl # 2.6.30 API change
|
||||
dnl # The blk_queue_physical_block_size() function was introduced to
|
||||
dnl # indicate the smallest I/O the device can write without incurring
|
||||
dnl # a read-modify-write penalty.
|
||||
dnl #
|
||||
AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_PHYSICAL_BLOCK_SIZE], [
|
||||
AC_MSG_CHECKING([whether blk_queue_physical_block_size() is available])
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
ZFS_LINUX_TRY_COMPILE([
|
||||
#include <linux/blkdev.h>
|
||||
],[
|
||||
struct request_queue *q = NULL;
|
||||
unsigned short block_size = 1;
|
||||
(void) blk_queue_physical_block_size(q, block_size);
|
||||
],[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE, 1,
|
||||
[blk_queue_physical_block_size() is available])
|
||||
],[
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
])
|
|
@ -22,6 +22,11 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
|
|||
ZFS_AC_KERNEL_REQ_SYNC
|
||||
ZFS_AC_KERNEL_BLK_END_REQUEST
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_FLUSH
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_MAX_HW_SECTORS
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_MAX_SEGMENTS
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_PHYSICAL_BLOCK_SIZE
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_IO_OPT
|
||||
ZFS_AC_KERNEL_BLK_QUEUE_NONROT
|
||||
ZFS_AC_KERNEL_BLK_FETCH_REQUEST
|
||||
ZFS_AC_KERNEL_BLK_REQUEUE_REQUEST
|
||||
ZFS_AC_KERNEL_BLK_RQ_BYTES
|
||||
|
|
|
@ -13804,6 +13804,353 @@ _ACEOF
|
|||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
unsigned short block_size = 1;
|
||||
(void) blk_queue_physical_block_size(q, block_size);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
unsigned int opt = 1;
|
||||
(void) blk_queue_io_opt(q, opt);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_IO_OPT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_nonrot(q);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_NONROT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
@ -19137,6 +19484,353 @@ _ACEOF
|
|||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
unsigned short block_size = 1;
|
||||
(void) blk_queue_physical_block_size(q, block_size);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
unsigned int opt = 1;
|
||||
(void) blk_queue_io_opt(q, opt);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_IO_OPT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
||||
|
||||
EXTRA_KCFLAGS="$tmp_flags"
|
||||
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
|
||||
$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
|
||||
tmp_flags="$EXTRA_KCFLAGS"
|
||||
EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
|
||||
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.c
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
|
||||
#include <linux/blkdev.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct request_queue *q = NULL;
|
||||
(void) blk_queue_nonrot(q);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
|
||||
|
||||
rm -Rf build && mkdir -p build
|
||||
echo "obj-m := conftest.o" >build/Makefile
|
||||
if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_BLK_QUEUE_NONROT 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ $as_echo "$as_me:$LINENO: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
rm -Rf build
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -200,6 +200,53 @@ __blk_rq_bytes(struct request *req)
|
|||
#define blk_queue_stackable(q) ((q)->request_fn == NULL)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 2.6.34 API change,
|
||||
* The blk_queue_max_hw_sectors() function replaces blk_queue_max_sectors().
|
||||
*/
|
||||
#ifndef HAVE_BLK_QUEUE_MAX_HW_SECTORS
|
||||
#define blk_queue_max_hw_sectors __blk_queue_max_hw_sectors
|
||||
static inline void
|
||||
__blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors)
|
||||
{
|
||||
blk_queue_max_sectors(q, max_hw_sectors);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 2.6.34 API change,
|
||||
* The blk_queue_max_segments() function consolidates
|
||||
* blk_queue_max_hw_segments() and blk_queue_max_phys_segments().
|
||||
*/
|
||||
#ifndef HAVE_BLK_QUEUE_MAX_SEGMENTS
|
||||
#define blk_queue_max_segments __blk_queue_max_segments
|
||||
static inline void
|
||||
__blk_queue_max_segments(struct request_queue *q, unsigned short max_segments)
|
||||
{
|
||||
blk_queue_max_phys_segments(q, max_segments);
|
||||
blk_queue_max_hw_segments(q, max_segments);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 2.6.30 API change,
|
||||
* The blk_queue_physical_block_size() function was introduced to
|
||||
* indicate the smallest I/O the device can write without incurring
|
||||
* a read-modify-write penalty. For older kernels this is a no-op.
|
||||
*/
|
||||
#ifndef HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE
|
||||
#define blk_queue_physical_block_size(q, x) ((void)(0))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 2.6.30 API change,
|
||||
* The blk_queue_io_opt() function was added to indicate the optimal
|
||||
* I/O size for the device. For older kernels this is a no-op.
|
||||
*/
|
||||
#ifndef HAVE_BLK_QUEUE_IO_OPT
|
||||
#define blk_queue_io_opt(q, x) ((void)(0))
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GET_DISK_RO
|
||||
static inline int
|
||||
get_disk_ro(struct gendisk *disk)
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -52,6 +52,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -1188,6 +1188,15 @@ __zvol_create_minor(const char *name)
|
|||
|
||||
set_capacity(zv->zv_disk, zv->zv_volsize >> 9);
|
||||
|
||||
blk_queue_max_hw_sectors(zv->zv_queue, UINT_MAX);
|
||||
blk_queue_max_segments(zv->zv_queue, UINT16_MAX);
|
||||
blk_queue_max_segment_size(zv->zv_queue, UINT_MAX);
|
||||
blk_queue_physical_block_size(zv->zv_queue, zv->zv_volblocksize);
|
||||
blk_queue_io_opt(zv->zv_queue, zv->zv_volblocksize);
|
||||
#ifdef HAVE_BLK_QUEUE_NONROT
|
||||
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, zv->zv_queue);
|
||||
#endif
|
||||
|
||||
if (zil_replay_disable)
|
||||
zil_destroy(dmu_objset_zil(os), B_FALSE);
|
||||
else
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -50,6 +50,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -51,6 +51,11 @@ am__aclocal_m4_deps = \
|
|||
$(top_srcdir)/config/kernel-blk-end-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-fetch-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-flush.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-io-opt.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-hw-sectors.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-max-segments.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-nonrot.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-queue-physical-block-size.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-requeue-request.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-bytes.m4 \
|
||||
$(top_srcdir)/config/kernel-blk-rq-pos.m4 \
|
||||
|
|
|
@ -57,6 +57,21 @@
|
|||
/* blk_queue_flush() is GPL-only */
|
||||
#undef HAVE_BLK_QUEUE_FLUSH_GPL_ONLY
|
||||
|
||||
/* blk_queue_io_opt() is available */
|
||||
#undef HAVE_BLK_QUEUE_IO_OPT
|
||||
|
||||
/* blk_queue_max_hw_sectors() is available */
|
||||
#undef HAVE_BLK_QUEUE_MAX_HW_SECTORS
|
||||
|
||||
/* blk_queue_max_segments() is available */
|
||||
#undef HAVE_BLK_QUEUE_MAX_SEGMENTS
|
||||
|
||||
/* blk_queue_nonrot() is available */
|
||||
#undef HAVE_BLK_QUEUE_NONROT
|
||||
|
||||
/* blk_queue_physical_block_size() is available */
|
||||
#undef HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE
|
||||
|
||||
/* blk_requeue_request() is available */
|
||||
#undef HAVE_BLK_REQUEUE_REQUEST
|
||||
|
||||
|
|
Loading…
Reference in New Issue