Re: [PATCH] virtio: console: Replace deprecated kmap_atomic with kmap_local_page

2025-01-10 Thread Ira Weiny
David Reaver wrote: > kmap_atomic() is deprecated and should be replaced with kmap_local_page() > [1][2]. kmap_local_page() is faster in kernels with HIGHMEM enabled, can > take page faults, and allows preemption. Thanks for taking these on! It is good to see some progress here. > > According t

Re: [PATCH] virtio: console: Replace deprecated kmap_atomic with kmap_local_page

2025-01-09 Thread Amit Shah
On Wed, 2025-01-08 at 19:59 -0800, David Reaver wrote: > kmap_atomic() is deprecated and should be replaced with > kmap_local_page() > [1][2]. kmap_local_page() is faster in kernels with HIGHMEM enabled, > can > take page faults, and allows preemption. > > According to [2], this replacement is saf

[PATCH] virtio: console: Replace deprecated kmap_atomic with kmap_local_page

2025-01-08 Thread David Reaver
kmap_atomic() is deprecated and should be replaced with kmap_local_page() [1][2]. kmap_local_page() is faster in kernels with HIGHMEM enabled, can take page faults, and allows preemption. According to [2], this replacement is safe as long as the code between kmap_atomic() and kunmap_atomic() does