]> git.baikalelectronics.ru Git - kernel.git/commit
dm: add ->flush() dax operation support
authorDan Williams <dan.j.williams@intel.com>
Mon, 29 May 2017 20:02:52 +0000 (13:02 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Jun 2017 21:34:59 +0000 (14:34 -0700)
commite32d096028bf6aa84e466a0d43b9d428e37a16e1
treee0b8a531424d7625e19a82a9151fa64a0a30671b
parent2e6aaa449db8b1af5e4945444fe4284270dff922
dm: add ->flush() dax operation support

Allow device-mapper to route flush operations to the
per-target implementation. In order for the device stacking to work we
need a dax_dev and a pgoff relative to that device. This gives each
layer of the stack the information it needs to look up the operation
pointer for the next level.

This conceptually allows for an array of mixed device drivers with
varying flush implementations.

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