summaryrefslogtreecommitdiffstats
path: root/include/linux/libnvdimm.h
diff options
context:
space:
mode:
authorDan Williams2016-02-19 21:16:34 +0100
committerDan Williams2016-03-05 21:24:06 +0100
commit7ae0fa439faff000744b234d04cb470bfd83593b (patch)
treefbc0666a921014807cf2de0e9feb5d5faba08de9 /include/linux/libnvdimm.h
parentnfit, tools/testing/nvdimm: unify common init for acpi_nfit_desc (diff)
downloadkernel-qcow2-linux-7ae0fa439faff000744b234d04cb470bfd83593b.tar.gz
kernel-qcow2-linux-7ae0fa439faff000744b234d04cb470bfd83593b.tar.xz
kernel-qcow2-linux-7ae0fa439faff000744b234d04cb470bfd83593b.zip
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.h1
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 {