]> granicus.if.org Git - zfs/commit
Linux 5.0 compat: Fix bio_set_dev()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 16 Jan 2019 18:39:19 +0000 (10:39 -0800)
committerTony Hutter <hutter2@llnl.gov>
Fri, 22 Feb 2019 17:47:34 +0000 (09:47 -0800)
commit5c4ec382a76c7c0d6b218fcab5a1c2e035012158
treeb8499b5b6582c2eb93c176c8386f0ea281a693fd
parente22bfd814960295029ca41c8e116e8d516d3e730
Linux 5.0 compat: Fix bio_set_dev()

The Linux 5.0 kernel updated the bio_set_dev() macro so it calls the
GPL-only bio_associate_blkg() symbol thus inadvertently converting
the entire macro.  Provide a minimal version which always assigns the
request queue's root_blkg to the bio.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8287
config/kernel-bio_set_dev.m4
module/zfs/vdev_disk.c