Thread (31 messages) 31 messages, 4 authors, 2021-12-15

Re: [PATCH 5/5] dax: always use _copy_mc_to_iter in dax_copy_to_iter

From: Dan Williams <hidden>
Date: 2021-12-12 15:03:15
Also in: dm-devel, linux-fsdevel, linux-s390, nvdimm

On Wed, Dec 8, 2021 at 10:38 PM Christoph Hellwig [off-list ref] wrote:
While using the MC-safe copy routines is rather pointless on a virtual device
like virtiofs, it also isn't harmful at all.  So just use _copy_mc_to_iter
unconditionally to simplify the code.
From a correctness perspective, yes, but from a performance perspective, see:

enable_copy_mc_fragile()

...on those platforms fast-string copy implementation is replaced with
a manual unrolled copy. So this will cause a performance regression on
those platforms.

How about let's keep this as is / still only use it for PMEM where end
users are already dealing with the performance difference across
platforms? I considered exporting an indicator of which backend
routine has been selected from arch/x86/lib/copy_mc.c, but it got
messy quickly so I fell back to just keeping the status quo.
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help