HomeFreeBSD

Linux 5.0 compat: Fix bio_set_dev()

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 16 2019, 6:39 PM
Parents
rG0c593296e98e: Linux 5.0 compat: Disable vector instructions on 5.0+ kernels
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG26a856594f73: Linux 5.0 compat: Fix bio_set_dev() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 28 2019, 6:11 PM