mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-07 07:43:21 +03:00
config: remove HAVE_1ARG_SUBMIT_BIO
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
a0abd7c5ff
commit
91b48a42e0
@ -262,30 +262,6 @@ AC_DEFUN([ZFS_AC_KERNEL_BIO_BI_STATUS], [
|
|||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl #
|
|
||||||
dnl # 4.8 API change
|
|
||||||
dnl # The rw argument has been removed from submit_bio/submit_bio_wait.
|
|
||||||
dnl # Callers are now expected to set bio->bi_rw instead of passing it in.
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_BIO_SUBMIT_BIO], [
|
|
||||||
ZFS_LINUX_TEST_SRC([submit_bio], [
|
|
||||||
#include <linux/bio.h>
|
|
||||||
],[
|
|
||||||
struct bio *bio = NULL;
|
|
||||||
(void) submit_bio(bio);
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_BIO_SUBMIT_BIO], [
|
|
||||||
AC_MSG_CHECKING([whether submit_bio() wants 1 arg])
|
|
||||||
ZFS_LINUX_TEST_RESULT([submit_bio], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_1ARG_SUBMIT_BIO, 1, [submit_bio() wants 1 arg])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl #
|
dnl #
|
||||||
dnl # 2.6.34 API change
|
dnl # 2.6.34 API change
|
||||||
dnl # current->bio_list
|
dnl # current->bio_list
|
||||||
@ -439,7 +415,6 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_BIO], [
|
|||||||
ZFS_AC_KERNEL_SRC_BIO_OPS
|
ZFS_AC_KERNEL_SRC_BIO_OPS
|
||||||
ZFS_AC_KERNEL_SRC_BIO_SET_DEV
|
ZFS_AC_KERNEL_SRC_BIO_SET_DEV
|
||||||
ZFS_AC_KERNEL_SRC_BIO_BI_STATUS
|
ZFS_AC_KERNEL_SRC_BIO_BI_STATUS
|
||||||
ZFS_AC_KERNEL_SRC_BIO_SUBMIT_BIO
|
|
||||||
ZFS_AC_KERNEL_SRC_BIO_CURRENT_BIO_LIST
|
ZFS_AC_KERNEL_SRC_BIO_CURRENT_BIO_LIST
|
||||||
ZFS_AC_KERNEL_SRC_BLKG_TRYGET
|
ZFS_AC_KERNEL_SRC_BLKG_TRYGET
|
||||||
ZFS_AC_KERNEL_SRC_BIO_BDEV_DISK
|
ZFS_AC_KERNEL_SRC_BIO_BDEV_DISK
|
||||||
@ -462,7 +437,6 @@ AC_DEFUN([ZFS_AC_KERNEL_BIO], [
|
|||||||
|
|
||||||
ZFS_AC_KERNEL_BIO_SET_DEV
|
ZFS_AC_KERNEL_BIO_SET_DEV
|
||||||
ZFS_AC_KERNEL_BIO_BI_STATUS
|
ZFS_AC_KERNEL_BIO_BI_STATUS
|
||||||
ZFS_AC_KERNEL_BIO_SUBMIT_BIO
|
|
||||||
ZFS_AC_KERNEL_BIO_CURRENT_BIO_LIST
|
ZFS_AC_KERNEL_BIO_CURRENT_BIO_LIST
|
||||||
ZFS_AC_KERNEL_BLKG_TRYGET
|
ZFS_AC_KERNEL_BLKG_TRYGET
|
||||||
ZFS_AC_KERNEL_BIO_BDEV_DISK
|
ZFS_AC_KERNEL_BIO_BDEV_DISK
|
||||||
|
@ -476,16 +476,6 @@ vdev_disk_close(vdev_t *v)
|
|||||||
v->vdev_tsd = NULL;
|
v->vdev_tsd = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
|
||||||
vdev_submit_bio_impl(struct bio *bio)
|
|
||||||
{
|
|
||||||
#ifdef HAVE_1ARG_SUBMIT_BIO
|
|
||||||
(void) submit_bio(bio);
|
|
||||||
#else
|
|
||||||
(void) submit_bio(bio_data_dir(bio), bio);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* preempt_schedule_notrace is GPL-only which breaks the ZFS build, so
|
* preempt_schedule_notrace is GPL-only which breaks the ZFS build, so
|
||||||
* replace it with preempt_schedule under the following condition:
|
* replace it with preempt_schedule under the following condition:
|
||||||
@ -606,7 +596,7 @@ vdev_submit_bio(struct bio *bio)
|
|||||||
{
|
{
|
||||||
struct bio_list *bio_list = current->bio_list;
|
struct bio_list *bio_list = current->bio_list;
|
||||||
current->bio_list = NULL;
|
current->bio_list = NULL;
|
||||||
vdev_submit_bio_impl(bio);
|
(void) submit_bio(bio);
|
||||||
current->bio_list = bio_list;
|
current->bio_list = bio_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user