]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
watch_queue: Use local kmap in post_one_notification()
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 18 Nov 2025 21:07:06 +0000 (13:07 -0800)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Nov 2025 11:17:28 +0000 (12:17 +0100)
commitc29383a874ee86af1c68488f15f88544140414fe
tree28005c8559e15cbc7ef89da61abe2a7d108929b6
parent030e86dfdaa789dd2e2e481d7118979a9d1f8f4e
watch_queue: Use local kmap in post_one_notification()

Replace the now deprecated kmap_atomic() with kmap_local_page().

Optimize for the non-highmem cases and avoid disabling preemption and
pagefaults, the caller's context is atomic anyway, but that is irrelevant
to kmap. The memcpy itself does not require any such semantics and the
mapping would hold valid across context switches anyway. Further, highmem
is planned to to be removed[1].

[1] https://lore.kernel.org/all/4ff89b72-03ff-4447-9d21-dd6a5fe1550f@app.fastmail.com/

Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://patch.msgid.link/20251118210706.1816303-1-dave@stgolabs.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
kernel/watch_queue.c