3
0
Fork 0
forked from mirrors/nixpkgs

linux-rt_5_9: export symbols needed by zfs

Upstream issue: https://github.com/openzfs/zfs/issues/11097#issuecomment-740682245
This commit is contained in:
Orivej Desh 2020-12-08 15:23:51 +00:00
parent 1026c02f6d
commit 4376b91b40
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,11 @@
Export linux-rt (PREEMPT_RT) specific symbols needed by ZFS.
(Regular kernel provides them static inline in linux/preempt.h.)
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -1812 +1812 @@ void migrate_disable(void)
-EXPORT_SYMBOL_GPL(migrate_disable);
+EXPORT_SYMBOL(migrate_disable);
@@ -1843 +1843 @@ void migrate_enable(void)
-EXPORT_SYMBOL_GPL(migrate_enable);
+EXPORT_SYMBOL(migrate_enable);

View file

@ -87,6 +87,11 @@
};
};
export-rt-sched-migrate = {
name = "export-rt-sched-migrate";
patch = ./export-rt-sched-migrate.patch;
};
# patches from https://lkml.org/lkml/2019/7/15/1748
mac_nvme_t2 = rec {
name = "mac_nvme_t2";

View file

@ -18363,6 +18363,7 @@ in
kernelPatches.bridge_stp_helper
kernelPatches.request_key_helper
kernelPatches.export_kernel_fpu_functions."5.3"
kernelPatches.export-rt-sched-migrate
];
};