public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
* sched: exporting linux-rt migrate_disable for ZFS
@ 2020-12-08 23:58 Orivej Desh
  2020-12-14 12:33 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 5+ messages in thread
From: Orivej Desh @ 2020-12-08 23:58 UTC (permalink / raw)
  To: LKML
  Cc: Sebastian Andrzej Siewior, Thomas Gleixner, Steven Rostedt,
	linux-rt-users, Peter Zijlstra, Brian Behlendorf

Greetings!

(If you are receiving this again, that's because I'm sending from
another domain since my message from @gmx.fr was not forwarded to the
lists.)

With sched-Add-migrate_disable.patch first released in v5.9-rc8-rt14 [1]
linux-rt defines functions migrate_disable and migrate_enable.
They are used in linux headers in various macros and static inline
functions, and in particular in kmap_atomic and kunmap_atomic.
The latter are needed by ZFS which currently fails to build against
5.9-rt [2] because these functions are exported with EXPORT_SYMBOL_GPL.
Could you export them with EXPORT_SYMBOL instead?

I have checked that ZFS 2.0.0 builds and works with 5.9.1-rt20 (with
an additional fix [3]) with this patch:

--- 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);

[1] https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/diff/patches/0009-sched-Add-migrate_disable.patch?h=v5.9-rc8-rt14-patches&id=9a89bfdb3bc77aecdd0ff8cc69b595541c7b50c4
[2] https://github.com/openzfs/zfs/issues/11097#issuecomment-740682245
[3] https://github.com/openzfs/zfs/pull/11309

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-15 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-08 23:58 sched: exporting linux-rt migrate_disable for ZFS Orivej Desh
2020-12-14 12:33 ` Sebastian Andrzej Siewior
2020-12-14 23:31   ` Orivej Desh
2020-12-15  3:19   ` Mike Galbraith
2020-12-15 14:05     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox