]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.12 compat: replace bio_*_io_acct with disk_*_io_acct
authorColeman Kane <ckane@colemankane.org>
Tue, 23 Feb 2021 02:18:41 +0000 (21:18 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Mar 2021 20:57:54 +0000 (12:57 -0800)
commit6c1989923e095a43844381278e8bb380634efb76
tree48a98b091c44beef5ba7407c073cc48bbf8230ed
parenta0eb5a77a0f2f0f30469b951f2213c2cbf8f17c8
Linux 5.12 compat: replace bio_*_io_acct with disk_*_io_acct

The bio_*_acct functions became GPL exports, which causes the
kernel modules to refuse to compile. This replaces code with
alternate function calls to the disk_*_io_acct interfaces, which
are not GPL exports. This change was added in kernel commit
99dfc43ecbf67f12a06512918aaba61d55863efc.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11639
config/kernel-generic_io_acct.m4
include/os/linux/kernel/linux/blkdev_compat.h