]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 5.5 compat: blkg_tryget()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 28 Feb 2020 16:58:39 +0000 (08:58 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2020 16:58:39 +0000 (08:58 -0800)
commitbd0d24e09b089af589ebaecd9e85d9fd4ac31deb
tree929a38a76c16333e79d637954e72ee3486264b89
parent2ce90dca91a991592da48c52332326ae4bb25b69
Linux 5.5 compat: blkg_tryget()

Commit https://github.com/torvalds/linux/commit/9e8d42a0f accidentally
converted the static inline function blkg_tryget() to GPL-only for
kernels built with CONFIG_PREEMPT_RCU=y and CONFIG_BLK_CGROUP=y.

Resolve the build issue by providing our own equivalent functionality
when needed which uses rcu_read_lock_sched() internally as before.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9745
Closes #10072
config/kernel-bio.m4
module/os/linux/zfs/vdev_disk.c