Dan Williams 200c79da82 libnvdimm, pmem, pfn: make pmem_rw_bytes generic and refactor pfn setup
In preparation for providing an alternative (to block device) access
mechanism to persistent memory, convert pmem_rw_bytes() to
nsio_rw_bytes().  This allows ->rw_bytes() functionality without
requiring a 'struct pmem_device' to be instantiated.

In other words, when ->rw_bytes() is in use i/o is driven through
'struct nd_namespace_io', otherwise it is driven through 'struct
pmem_device' and the block layer.  This consolidates the disjoint calls
to devm_exit_badblocks() and devm_memunmap() into a common
devm_nsio_disable() and cleans up the init path to use a unified
pmem_attach_disk() implementation.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2016-04-22 12:26:23 -07:00
..
2016-04-02 01:17:36 +02:00
2016-04-12 12:35:07 -07:00
2016-04-16 22:52:03 +05:30
2016-03-16 08:36:55 -07:00
2016-03-25 08:52:25 -07:00
2016-03-17 13:47:50 -07:00
2016-04-07 22:11:08 +02:00
2016-03-23 17:20:59 -07:00
2016-04-05 06:47:50 -07:00
2016-03-24 19:57:15 -07:00
2016-03-18 10:15:11 -07:00
2016-04-15 15:25:09 -07:00
2016-04-08 15:52:45 -04:00
2016-03-19 15:15:07 -07:00
2016-04-14 16:54:00 +02:00
2016-03-18 10:15:11 -07:00
2016-03-24 22:49:08 -07:00
2016-04-09 12:00:42 -07:00
2016-03-20 15:40:32 -07:00
2016-03-17 13:05:09 -07:00
2016-04-04 11:18:00 +01:00