]> 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)
commit72440f41dd90cdc3af41e80b8a4e06683de45bbe
tree9eaad41e540dd50898dbe8fb49d7bcf5826c1c9c
parent9be6a51b30c3da04fca4d0a845978616b301b840
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