Skip to content
Commit 1d61261b authored by Fabio M. De Francesco's avatar Fabio M. De Francesco Committed by Christoph Hellwig
Browse files

swiotlb: replace kmap_atomic() with memcpy_{from,to}_page()



The use of kmap_atomic() is being deprecated in favor of
kmap_local_page(), which can also be used in atomic context (including
interrupts).

Replace kmap_atomic() with kmap_local_page(). Instead of open coding
mapping, memcpy(), and un-mapping, use the memcpy_{from,to}_page() helper.

Suggested-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarFabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 521a547c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment