]> 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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Jan 2019 18:11:45 +0000 (10:11 -0800)
commit26a856594f731db62446cf537659f9360261fe97
tree39f1422bdb38e32b10990e53b2ab7067956e8bc5
parent0c593296e98e3ac95f14704e4cee6cedb2134990
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