mirror_zfs/module
Coleman Kane 94e49866e9 Linux 5.16: bio_set_dev is no longer a helper macro
This change adds a confiugre check to determine if bio_set_dev is a
helper macro or not. If not, then the attempt to override its internal
call to bio_associate_blkg(), with a macro definition to our own
version, is no longer possible, as the compiler won't use it when
compiling the new inline function replacement implemented in the header.
This change also creates a new vdev_bio_set_dev() function that performs
the same work, and also performs the work implemented in
vdev_bio_associate_blkg(), as it is the only thing calling that function
in our code. Our custom vdev_bio_associate_blkg() is now only compiled
if the bio_set_dev() is a macro in the Linux headers.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #12819
2021-12-07 13:15:12 -08:00
..
avl Links in Source Files 2020-09-03 16:17:18 -07:00
icp Extending FreeBSD UIO Struct 2021-11-12 16:31:55 -08:00
lua Use fallthrough macro 2021-11-12 15:24:36 -08:00
nvpair Update checkstyle workflow env to ubuntu-20.04 2021-11-12 16:31:55 -08:00
os Linux 5.16: bio_set_dev is no longer a helper macro 2021-12-07 13:15:12 -08:00
spl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
unicode Update checkstyle workflow env to ubuntu-20.04 2021-11-12 16:31:55 -08:00
zcommon Fix AVX512BW Fletcher code on AVX512-but-not-BW machines 2021-06-23 13:22:14 -07:00
zfs Linux 5.13 compat: retry zvol_open() when contended 2021-12-06 13:40:59 -08:00
zstd Fix cross-endian interoperability of zstd 2021-11-12 15:24:36 -08:00
.gitignore Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Kbuild.in Add zstd support to zfs 2020-08-20 10:30:06 -07:00
Makefile.bsd Restore FreeBSD resource usage accounting 2021-03-05 12:50:32 -08:00
Makefile.in Update checkstyle workflow env to ubuntu-20.04 2021-11-12 16:31:55 -08:00