]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.10 compat: check_disk_change() removed
authorColeman Kane <ckane@colemankane.org>
Sun, 18 Oct 2020 16:54:21 +0000 (12:54 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Nov 2020 17:51:26 +0000 (09:51 -0800)
commite767b1cacc065e5765054e30c1f06b4e0ec85692
tree72ef19f82512ed1e6101198c426eb810114f5562
parentd2090becabf56708c38ffabeb54f4bb8fff7c74d
Linux 5.10 compat: check_disk_change() removed

Kernel 5.10 removed check_disk_change() in favor of callers using
the faster bdev_check_media_change() instead, and explicitly forcing
bdev revalidation when they desire that behavior. To preserve prior
behavior, I have wrapped this into a zfs_check_media_change() macro
that calls an inline function for the new API that mimics the old
behavior when check_disk_change() doesn't exist, and just calls
check_disk_change() if it exists.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #11085
config/kernel-blkdev.m4
include/os/linux/kernel/linux/blkdev_compat.h
module/os/linux/zfs/vdev_disk.c
module/os/linux/zfs/zvol_os.c