dm: teach dm-targets to use a dax_device + dax_operations
authorDan Williams <dan.j.williams@intel.com>
Wed, 12 Apr 2017 20:37:44 +0000 (13:37 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 25 Apr 2017 20:20:36 +0000 (13:20 -0700)
commit817bf40265459578abc36c6bd53e27775b5c7ec4
tree7f77cc1bb97457d10d92df83a640d8d90023a653
parentf26c5719b2d7b00de69eb83eb1c1c831759fdc9b
dm: teach dm-targets to use a dax_device + dax_operations

Arrange for dm to lookup the dax services available from member devices.
Update the dax-capable targets, linear and stripe, to route dax
operations to the underlying device. Changes the target-internal
->direct_access() method to more closely align with the dax_operations
->direct_access() calling convention.

Cc: Toshi Kani <toshi.kani@hpe.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/dm-linear.c
drivers/md/dm-snap.c
drivers/md/dm-stripe.c
drivers/md/dm-target.c
drivers/md/dm.c
include/linux/device-mapper.h