diff options
| author | Shi Hao <i.shihao.999@gmail.com> | 2025-11-01 11:14:22 +0530 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-03 08:15:54 -0700 |
| commit | 77220f6d18a22b0b5d73b5d2156609b0aa21a7c5 (patch) | |
| tree | dc0b0e3983db734bad2dec1f66f9d066cde1ba54 /rust/kernel/alloc.rs | |
| parent | e48886b9d668d80be24e37345bd0904e9138473c (diff) | |
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>
Diffstat (limited to 'rust/kernel/alloc.rs')
0 files changed, 0 insertions, 0 deletions
