Re: [PATCH v4 2/5] vduse: Use memcpy_{to,from}_page() in do_bounce()
From: Muchun Song
Date: Thu Jul 28 2022 - 22:34:07 EST
On Thu, Jul 28, 2022 at 11:20 AM Xie Yongji <xieyongji@xxxxxxxxxxxxx> wrote:
>
> kmap_atomic() is being deprecated in favor of kmap_local_page().
>
> The use of kmap_atomic() in do_bounce() is all thread local therefore
> kmap_local_page() is a sufficient replacement.
>
> Convert to kmap_local_page() but, instead of open coding it,
> use the helpers memcpy_to_page() and memcpy_from_page().
>
> Signed-off-by: Xie Yongji <xieyongji@xxxxxxxxxxxxx>
> Acked-by: Jason Wang <jasowang@xxxxxxxxxx>
Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>