mirror_zfs/include/os/linux/kernel/linux
Brian Behlendorf 6152014d1a
Linux 4.18.0-257.el8 compat: blk_alloc_queue()
The CentOS stream 4.18.0-257 kernel appears to have backported
the Linux 5.9 change to make_request_fn and the associated API.
To maintain weak modules compatibility the original symbol was
retained and the new interface blk_alloc_queue_rh() was added.

Unfortunately, blk_alloc_queue() was replaced in the blkdev.h
header by blk_alloc_queue_bh() so there doesn't seem to be a way
to build new kmods against the old interfces.  Even though they
appear to still be available for weak module binding.

To accommodate this a configure check is added for the new _rh()
variant of the function and used if available.  If compatibility
code gets added to the kernel for the original blk_alloc_queue()
interface this should be fine.  OpenZFS will simply continue to
prefer the new interface and only fallback to blk_alloc_queue()
when blk_alloc_queue_rh() isn't available.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11374
2020-12-21 10:11:56 -08:00
..
blkdev_compat.h Linux 4.18.0-257.el8 compat: blk_alloc_queue() 2020-12-21 10:11:56 -08:00
compiler_compat.h OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
dcache_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
kmap_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
Makefile.am Avoid installing kernel headers on FreeBSD 2020-06-27 17:40:14 -07:00
mod_compat.h FreeBSD: Implement sysctl for fletcher4 impl 2020-12-11 10:29:01 -08:00
page_compat.h Linux 5.9 compat: NR_SLAB_RECLAIMABLE 2020-08-29 20:57:45 -07:00
percpu_compat.h Use percpu_counter for obj_alloc counter of Linux-backed caches 2020-06-26 18:06:50 -07:00
simd_aarch64.h Linux 4.14, 4.19, 5.0+ compat: SIMD save/restore 2019-10-24 10:17:33 -07:00
simd_powerpc.h Add AltiVec RAID-Z 2020-01-23 11:01:24 -08:00
simd_x86.h ICP: Improve AES-GCM performance 2020-02-10 12:59:50 -08:00
simd.h Add AltiVec RAID-Z 2020-01-23 11:01:24 -08:00
utsname_compat.h OpenZFS restructuring - move platform specific headers 2019-09-05 09:34:54 -07:00
vfs_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00
xattr_compat.h Linux compat: Minimum kernel version 3.10 2019-11-12 08:59:06 -08:00