]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e0c600336c11fc3762d2f4517b6f0555c3ced44
tree9eaad41e540dd50898dbe8fb49d7bcf5826c1c9c
parent65290ffcd8614568fb7e242c5ea86c97a9e733aa
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