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:
Rob Norris
2024-08-16 15:45:56 +10:00
committed by Tony Hutter
parent a0abd7c5ff
commit 91b48a42e0
2 changed files with 1 additions and 37 deletions
+1 -11
View File
@@ -476,16 +476,6 @@ vdev_disk_close(vdev_t *v)
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
* 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;
current->bio_list = NULL;
vdev_submit_bio_impl(bio);
(void) submit_bio(bio);
current->bio_list = bio_list;
}