Messages in this thread | | | Date | Mon, 23 Mar 2015 13:59:53 -0700 | Subject | Re: [PATCH 7/8] pmem: Add support for page structs | From | Dan Williams <> |
| |
On Thu, Mar 5, 2015 at 3:59 AM, Boaz Harrosh <boaz@plexistor.com> wrote: > > One of the current shortcomings of the NVDIMM/PMEM > support is that this memory does not have a page-struct(s) > associated with its memory and therefor cannot be passed > to a block-device or network or DMAed in any way through > another device in the system. > > The use of add_persistent_memory() fixes all this. After this patch > an FS can do: > bdev_direct_access(,&pfn,);
Hmm, can we do this mapping on demand per direct access mapping rather than unconditionally for each range that pmem is handling?
Going forward I don't think we want to be tied to guaranteeing that plain bdev_direct_access() always yields pfn_to_page()-capable pfns.
Perhaps a DAX_MAP_PFN flag or something along those lines?
| |