]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
libnvdimm, dimm: clear 'locked' status on successful DIMM enable
authorDan Williams <dan.j.williams@intel.com>
Mon, 25 Sep 2017 18:01:31 +0000 (11:01 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 28 Sep 2017 16:10:14 +0000 (09:10 -0700)
commitd34cb808402898e53b9a9bcbbedd01667a78723b
treed4ea0dbd680af3ddf3b3ec5655916a76fa21f57b
parente19b205be43d11bff638cad4487008c48d21c103
libnvdimm, dimm: clear 'locked' status on successful DIMM enable

If we successfully enable a DIMM then it must not be locked and we can
clear the label-read failure condition. Otherwise, we need to reload the
entire bus provider driver to achieve the same effect, and that can
disrupt unrelated DIMMs and namespaces.

Fixes: 9d62ed965118 ("libnvdimm: handle locked label storage areas")
Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/dimm.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd.h