]> git.proxmox.com Git - mirror_zfs.git/commit - module/os/linux/zfs/zvol_os.c
Linux 5.11 compat: bio_start_io_acct() / bio_end_io_acct()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Dec 2020 20:17:13 +0000 (12:17 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Dec 2020 00:20:24 +0000 (16:20 -0800)
commita970f0594e9f67363dece8e0ed066e3eb7725bb4
tree4c4c9df0627b2f4dbcb09e819ce02d5313d06d05
parentb7281c88bcbba0525e8b55607145956320d103f0
Linux 5.11 compat: bio_start_io_acct() / bio_end_io_acct()

The generic IO accounting functions have been removed in favor of the
bio_start_io_acct() and bio_end_io_acct() functions which provide a
better interface.  These new functions were introduced in the 5.8
kernels but it wasn't until the 5.11 kernel that the previous generic
IO accounting interfaces were removed.

This commit updates the blk_generic_*_io_acct() wrappers to provide
and interface similar to the updated kernel interface.  It's slightly
different because for older kernels we need to pass the request queue
as well as the bio.

Reviewed-by: Rafael Kitover <rkitover@gmail.com>
Reviewed-by: Coleman Kane <ckane@colemankane.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11387
Closes #11390
config/kernel-generic_io_acct.m4
include/os/linux/kernel/linux/blkdev_compat.h
module/os/linux/zfs/zvol_os.c