libnvdimm, dax: fix deletion
authorDan Williams <dan.j.williams@intel.com>
Sat, 21 May 2016 19:22:41 +0000 (12:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 21 May 2016 19:22:41 +0000 (12:22 -0700)
commit03dca343afe080968d90c4d9196404b5bbbc8461
tree9eaad41e540dd50898dbe8fb49d7bcf5826c1c9c
parent5e24c9fd36285535c704e84748d6c890be870fb6
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>
drivers/nvdimm/claim.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/pfn_devs.c