diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-11-18 20:48:44 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-11-24 14:42:09 +0100 |
commit | f3ba3c710ac5a30cd058615a9eb62d2ad95bb782 (patch) | |
tree | 1678112f3c1f9793ac5551679cfe2a275a270543 /Documentation/driver-api | |
parent | 5fbda3ecd14a5343644979c98d6eb65b7e7de9d8 (diff) | |
download | linux-stable-f3ba3c710ac5a30cd058615a9eb62d2ad95bb782.tar.gz linux-stable-f3ba3c710ac5a30cd058615a9eb62d2ad95bb782.tar.bz2 linux-stable-f3ba3c710ac5a30cd058615a9eb62d2ad95bb782.zip |
mm/highmem: Provide kmap_local*
Now that the kmap atomic index is stored in task struct provide a
preemptible variant. On context switch the maps of an outgoing task are
removed and the map of the incoming task are restored. That's obviously
slow, but highmem is slow anyway.
The kmap_local.*() functions can be invoked from both preemptible and
atomic context. kmap local sections disable migration to keep the resulting
virtual mapping address correct, but disable neither pagefaults nor
preemption.
A wholesale conversion of kmap_atomic to be fully preemptible is not
possible because some of the usage sites might rely on the preemption
disable for serialization or on the implicit pagefault disable. Needs to be
done on a case by case basis.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20201118204007.468533059@linutronix.de
Diffstat (limited to 'Documentation/driver-api')
0 files changed, 0 insertions, 0 deletions