diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-05-21 12:22:41 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-05-21 12:22:41 -0700 |
commit | 03dca343afe080968d90c4d9196404b5bbbc8461 (patch) | |
tree | 9eaad41e540dd50898dbe8fb49d7bcf5826c1c9c /drivers/nvdimm/nd-core.h | |
parent | 5e24c9fd36285535c704e84748d6c890be870fb6 (diff) |
libnvdimm, dax: fix deletion
The ndctl unit tests discovered that the dax enabling omitted updates to
nd_detach_and_reset(). This routine clears device the configuration
when the namespace is detached. Without this clearing userspace may
assume that the device is in the process of being configured by another
agent in the system.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd-core.h')
-rw-r--r-- | drivers/nvdimm/nd-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 4136c1a82539..6c42eda025f9 100644 --- a/drivers/nvdimm/nd-core.h +++ b/drivers/nvdimm/nd-core.h @@ -94,4 +94,5 @@ bool __nd_attach_ndns(struct device *dev, struct nd_namespace_common *attach, ssize_t nd_namespace_store(struct device *dev, struct nd_namespace_common **_ndns, const char *buf, size_t len); +struct nd_pfn *to_nd_pfn_safe(struct device *dev); #endif /* __ND_CORE_H__ */ |