HomeFreeBSD

Fix PREEMPTION=y and BLK_CGROUP=y config on arm64

Description

Fix PREEMPTION=y and BLK_CGROUP=y config on arm64

With PREEMPTION=y and BLK_CGROUP=y preempt_schedule_notrace() is being
used on arm64 which is a GPL-only function and hence the build of the
DKMS kernel module fails.

Fix that by redefining preempt_schedule_notrace() to preempt_schedule()
which should be safe as long as tracing is not used.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Closes #8545
Closes #9948
Closes #10416
Closes #10973

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Sep 25 2020, 8:28 PM
GitHub <noreply@github.com>Committed on Sep 25 2020, 8:28 PM
Parents
rGf6bb7c029cab: FreeBSD: update cache_purgevfs usage after 1300117 version bump
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG2e407941a214: Fix PREEMPTION=y and BLK_CGROUP=y config on arm64 (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 25 2020, 8:28 PM