diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-02-19 23:16:34 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-03-05 23:24:06 +0300 |
commit | 7ae0fa439faff000744b234d04cb470bfd83593b (patch) | |
tree | fbc0666a921014807cf2de0e9feb5d5faba08de9 /include/linux/libnvdimm.h | |
parent | a61fe6f7902ecaa89d5e6c709490fc4324927134 (diff) | |
download | linux-7ae0fa439faff000744b234d04cb470bfd83593b.tar.xz |
nfit, libnvdimm: async region scrub workqueue
Introduce a workqueue that will be used to run address range scrub
asynchronously with the rest of nvdimm device probing.
Userspace still wants notification when probing operations complete, so
introduce a new callback to flush this workqueue when userspace is
awaiting probe completion.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/libnvdimm.h')
-rw-r--r-- | include/linux/libnvdimm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h index f398953270d1..2299f8742f7f 100644 --- a/include/linux/libnvdimm.h +++ b/include/linux/libnvdimm.h @@ -71,6 +71,7 @@ struct nvdimm_bus_descriptor { unsigned long dsm_mask; char *provider_name; ndctl_fn ndctl; + int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc); }; struct nd_cmd_desc { |