]> Gentwo Git Trees - linux/.git/commit
drbd: replace kmap() with kmap_local_page() in receiver path
authorShi Hao <i.shihao.999@gmail.com>
Sat, 1 Nov 2025 05:44:22 +0000 (11:14 +0530)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Nov 2025 15:15:54 +0000 (08:15 -0700)
commit77220f6d18a22b0b5d73b5d2156609b0aa21a7c5
treedc0b0e3983db734bad2dec1f66f9d066cde1ba54
parente48886b9d668d80be24e37345bd0904e9138473c
drbd: replace kmap() with kmap_local_page() in receiver path

Use kmap_local_page() instead of kmap() to avoid
CPU contention.

kmap() uses a global set of mapping slots that can cause contention
between multiple CPUs, while kmap_local_page() uses per-CPU slots
eliminating this contention. It also ensures non-sleeping operation
and provides better cache locality.

Convert kmap() to kmap_local_page() as it aligns with ongoing
kernel efforts to modernize kmap() usage for better multi-core
scalability.

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_receiver.c